Browse Source

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
Liangwei Dong 6 years ago
parent
commit
433a8dbfad
1 changed files with 6 additions and 0 deletions
  1. 6 0
      core/mac/src/pe/lim/lim_process_assoc_req_frame.c

+ 6 - 0
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;
 		}