summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKabilan Kannan <kabilank@codeaurora.org>2016-07-21 06:16:04 -0700
committerVishwajith Upendra <vishwaji@codeaurora.org>2016-07-26 22:33:55 -0700
commitb76eff2eded20ac31ececd8addc4c82ba569e5b0 (patch)
treed9b2a559b221431a7600e469da81c9158f33beb0
parent2eeaf6af919e3bbc041df2d8844b2d2d4d3191c6 (diff)
qcacld-3.0: Fix TDLS VHT channel width information
TDLS VHT channel width information can be read from session entry, but the value needs to be readjusted as per our protocol stack implementation. Add changes in the host driver to fix TDLS VHT channel width information. Change-Id: I8797b298e46213ace014557697a449ea4ae560b6 CRs-fixed: 1044693
-rw-r--r--core/mac/src/pe/lim/lim_process_tdls.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c
index ed5420a4ff1e..6759eb6a939c 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 @@ 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;