From f2e20ef2f99f04b8a586c994bcfc426d94377938 Mon Sep 17 00:00:00 2001 From: wadesong Date: Mon, 7 Nov 2016 17:51:57 +0800 Subject: qcacld-3.0: Add a missing condition of VHT cap checking qcacld-2.0 to qcacld-3.0 propagation When SAP is running in 11ac only mode, it should reject the incoming association requests if one of the following conditions is true: 1) VHT capability IE is missing 2) VHT capability IE is available, but present bit is cleared Change-Id: Iad0e85a741d36dfd8727db668a4600ee3594f905 CRs-Fixed: 1084052 --- core/mac/src/pe/lim/lim_process_assoc_req_frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/mac/src') 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 69f2d9b41b05..b7d0a4a1aa78 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 @@ -516,7 +516,7 @@ static bool lim_chk_11ac_only(tpAniSirGlobal mac_ctx, tpSirMacMgmtHdr hdr, if (LIM_IS_AP_ROLE(session) && (session->dot11mode == WNI_CFG_DOT11_MODE_11AC_ONLY) && - ((vht_caps != NULL) && (!vht_caps->present))) { + ((vht_caps == NULL) || ((vht_caps != NULL) && (!vht_caps->present)))) { lim_send_assoc_rsp_mgmt_frame(mac_ctx, eSIR_MAC_CAPABILITIES_NOT_SUPPORTED_STATUS, 1, hdr->sa, sub_type, 0, session); -- cgit v1.2.3