mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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:
parent
fe42f5d598
commit
62a62e6d78
1 changed files with 12 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue