From 62a62e6d78a961435a1e2ff310ab2f70c90d03e1 Mon Sep 17 00:00:00 2001 From: Rajasekaran Kalidoss Date: Mon, 20 Apr 2020 14:46:06 +0530 Subject: [PATCH] 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 --- core/mac/src/pe/lim/lim_process_assoc_req_frame.c | 12 ++++++++++++ 1 file changed, 12 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 47b8dfe126bc..312b43b9fd05 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 @@ -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,