diff options
| author | wadesong <wadesong@codeaurora.org> | 2016-11-07 17:51:57 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-11-18 16:42:57 -0800 |
| commit | f2e20ef2f99f04b8a586c994bcfc426d94377938 (patch) | |
| tree | 802632042ec6facf72646f3757ffd04f556f1c26 | |
| parent | 3e9d671dcf224987b64250edfeb3101da313fb97 (diff) | |
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
| -rw-r--r-- | core/mac/src/pe/lim/lim_process_assoc_req_frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
