Browse Source

qcacld-3.0: Reject assoc_req with RSNIE in SAP open network

If STA sends RSN IE in assoc_req for SAP in open network
then check this scenario and reject the request. This prevents
Host from sending WMI_PEER_NEED_PTK_4_WAY in peer
flags which results in a firmware assert.

Change-Id: I8696c9ae33670d019a9c662a3fa9420311fa0629
CRs-Fixed: 2625911
Rajasekaran Kalidoss 5 years ago
parent
commit
62a62e6d78
1 changed files with 12 additions and 0 deletions
  1. 12 0
      core/mac/src/pe/lim/lim_process_assoc_req_frame.c

+ 12 - 0
core/mac/src/pe/lim/lim_process_assoc_req_frame.c

@@ -2127,6 +2127,18 @@ bool lim_send_assoc_ind_to_sme(struct mac_context *mac_ctx,
 		return false;
 	}
 
+	if (LIM_IS_AP_ROLE(session)) {
+		if ((assoc_req->wpaPresent || assoc_req->rsnPresent) &&
+		    !session->privacy) {
+			lim_reject_association(mac_ctx, hdr->sa, sub_type,
+					       true, auth_type, peer_idx,
+					       true,
+					       eSIR_MAC_UNSPEC_FAILURE_STATUS,
+					       session);
+			return false;
+		}
+	}
+
 send_ind_to_sme:
 	if (!lim_update_sta_ds(mac_ctx, hdr, session, assoc_req,
 			       sub_type, sta_ds, auth_type, akm_type,