瀏覽代碼

Merge "qcacld-3.0: Fix TDLS VHT channel width information" into wlan-cld3.driver.lnx.1.1-dev

Service qcabuildsw 8 年之前
父節點
當前提交
6f28105207
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      core/mac/src/pe/lim/lim_process_tdls.c

+ 8 - 2
core/mac/src/pe/lim/lim_process_tdls.c

@@ -2388,9 +2388,15 @@ static void lim_tdls_update_hash_node_info(tpAniSirGlobal pMac,
 		 * width of the BSS to which the TDLS peer STAs are
 		 * associated.
 		 */
-		pStaDs->vhtSupportedChannelWidthSet = psessionEntry->ch_width;
+		if (psessionEntry->ch_width)
+			pStaDs->vhtSupportedChannelWidthSet =
+					psessionEntry->ch_width - 1;
+		else
+			pStaDs->vhtSupportedChannelWidthSet =
+					psessionEntry->ch_width;
+
 		lim_log(pMac, LOG1, FL("vhtSupportedChannelWidthSet = %hu, htSupportedChannelWidthSet %hu"),
-			pStaDs->htSupportedChannelWidthSet,
+			pStaDs->vhtSupportedChannelWidthSet,
 			pStaDs->htSupportedChannelWidthSet);
 
 		pStaDs->vhtLdpcCapable = pVhtCaps->ldpcCodingCap;