From 2e27e581c5f5951318ffe28e360433901ca0250c Mon Sep 17 00:00:00 2001 From: Abhishek Ambure Date: Sat, 29 Aug 2020 13:56:09 +0530 Subject: [PATCH] qcacld-3.0: Don't set OCV bit in RSN cap if AP is not PMF enabled OCV capability i.e. 0x4000 bit in RSN capability is set to 1 to indicate that the STA supports operating channel validation by including Operating Channel Information (OCI) in RSNA exchanges and validates the information when received from another STA that indicated this capability. OCV support implicitly depends on PMF capability, AP's with no PMF support disassociate STA if STA sets OCV bit in RSN capability of assoc request. Hence if AP doesn't support PMF, do not set OCV support bit i.e. 0x4000 in RSN capability of assoc request. Change-Id: I4a331cab9dfaebe3a6b8ff8656888a333355f4a6 CRs-Fixed: 2763169 --- core/sme/src/csr/csr_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index d29f13a1d052..59175d85be5d 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -2878,6 +2878,7 @@ uint8_t csr_construct_rsn_ie(struct mac_context *mac, uint32_t sessionId, } else { self_rsn_cap &= ~WLAN_CRYPTO_RSN_CAP_MFP_ENABLED; self_rsn_cap &= ~WLAN_CRYPTO_RSN_CAP_MFP_REQUIRED; + self_rsn_cap &= ~WLAN_CRYPTO_RSN_CAP_OCV_SUPPORTED; } wlan_crypto_set_vdev_param(vdev, WLAN_CRYPTO_PARAM_RSN_CAP, self_rsn_cap);