summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/mac/src/pe/lim/lim_send_management_frames.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c
index 4a73e4083e19..4bc932ef0b75 100644
--- a/core/mac/src/pe/lim/lim_send_management_frames.c
+++ b/core/mac/src/pe/lim/lim_send_management_frames.c
@@ -2305,7 +2305,14 @@ alloc_packet:
if (challenge_req) {
if (body_len < SIR_MAC_AUTH_CHALLENGE_BODY_LEN) {
- qdf_mem_copy(body, (uint8_t *)&auth_frame->type,
+ /* copy challenge IE id, len, challenge text */
+ *body = auth_frame->type;
+ body++;
+ body_len -= sizeof(uint8_t);
+ *body = auth_frame->length;
+ body++;
+ body_len -= sizeof(uint8_t);
+ qdf_mem_copy(body, auth_frame->challengeText,
body_len);
pe_err("Incomplete challenge info: length: %d, expected: %d",
body_len,