qcacld-3.0: Check AP support OCV before enable it

If AP doesn't support OCV, disable OCV in STA RSN capability.

Change-Id: I4ab3c956c3169b50a69c05d9ed1c36e055aeb586
CRs-Fixed: 2831619
This commit is contained in:
Liangwei Dong
2020-12-03 20:43:44 +08:00
gecommit door snandini
bovenliggende 9822e7d188
commit b5c2ed28db

Bestand weergeven

@@ -2854,6 +2854,8 @@ uint8_t csr_construct_rsn_ie(struct mac_context *mac, uint32_t sessionId,
self_rsn_cap |= WLAN_CRYPTO_RSN_CAP_MFP_ENABLED;
if (pProfile->MFPRequired)
self_rsn_cap |= WLAN_CRYPTO_RSN_CAP_MFP_REQUIRED;
if (!(rsn_cap & WLAN_CRYPTO_RSN_CAP_OCV_SUPPORTED))
self_rsn_cap &= ~WLAN_CRYPTO_RSN_CAP_OCV_SUPPORTED;
} else {
self_rsn_cap &= ~WLAN_CRYPTO_RSN_CAP_MFP_ENABLED;
self_rsn_cap &= ~WLAN_CRYPTO_RSN_CAP_MFP_REQUIRED;