瀏覽代碼

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
Liangwei Dong 4 年之前
父節點
當前提交
b5c2ed28db
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/sme/src/csr/csr_util.c

+ 2 - 0
core/sme/src/csr/csr_util.c

@@ -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;