Merge "qcacld-3.0: Fix TDLS VHT channel width information" into wlan-cld3.driver.lnx.1.1-dev
diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c
index ed5420a..6759eb6 100644
--- a/core/mac/src/pe/lim/lim_process_tdls.c
+++ b/core/mac/src/pe/lim/lim_process_tdls.c
@@ -2388,9 +2388,15 @@
* 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;