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
This commit is contained in:
Rajasekaran Kalidoss 2020-04-20 14:46:06 +05:30 • committed by nshrivas
commit 62a62e6d78

View file

@ -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,