From 433a8dbfad0ecbf3267ba971aa46bb32daab12ca Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Tue, 14 Aug 2018 01:43:23 -0400 Subject: [PATCH] qcacld-3.0: Reject Invalid RSN IE Assoc Request If SAP configured with RSN security IE, peer should include compatible RSN parameters. Reject the Assoc request if peer include invalid RSN IE. Change-Id: I10083d7feb669fe5d1c2650ae3c3092e5b28169e CRs-Fixed: 2294876 --- core/mac/src/pe/lim/lim_process_assoc_req_frame.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/mac/src/pe/lim/lim_process_assoc_req_frame.c b/core/mac/src/pe/lim/lim_process_assoc_req_frame.c index 68c3c65b0066..7ae726472afb 100644 --- a/core/mac/src/pe/lim/lim_process_assoc_req_frame.c +++ b/core/mac/src/pe/lim/lim_process_assoc_req_frame.c @@ -860,6 +860,9 @@ static bool lim_check_wpa_rsn_ie(tpPESession session, tpAniSirGlobal mac_ctx, &dot11f_ie_rsn, false); if (!DOT11F_SUCCEEDED(ret)) { pe_err("Invalid RSN IE"); + lim_send_assoc_rsp_mgmt_frame( + mac_ctx, eSIR_MAC_INVALID_IE_STATUS, 1, + hdr->sa, sub_type, 0, session); return false; } @@ -912,6 +915,9 @@ static bool lim_check_wpa_rsn_ie(tpPESession session, tpAniSirGlobal mac_ctx, &dot11f_ie_wpa, false); if (!DOT11F_SUCCEEDED(ret)) { pe_err("Invalid WPA IE"); + lim_send_assoc_rsp_mgmt_frame( + mac_ctx, eSIR_MAC_INVALID_IE_STATUS, 1, + hdr->sa, sub_type, 0, session); return false; }