summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Kondabattini <ganeshk@qti.qualcomm.com>2015-10-24 09:54:06 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2015-10-27 17:30:11 +0530
commit992d3a5bff32aec00e4c5329ddfde0888d1c0524 (patch)
tree5e89420412d53092314dc054dbe0894e98bd5c4d
parentd6e6ee27b8cfafc2318baacd7beeebd27d0a9869 (diff)
wlan: Set channel width for TDLS link on base channel
The htSupportedChannelWidthSet of the TDLS link on base channel should be less than or equal to channel width of STA-AP link. The parameter pStaDs->htSupportedChannelWidthSet represents the channel width of TDLS link on base channel. psessionEntry->htSupportedChannelWidthSet represents the channel width set of STA-AP link. So fill the pStaDs->htSupportedChannelWidthSet from psessionEntry->htSupportedChannelWidthSet. Change-Id: I7fe3f2f449d83f5d6f01adce3a25d8031dfbeb48 CRs-Fixed: 800031
-rw-r--r--CORE/MAC/src/pe/lim/limProcessTdls.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessTdls.c b/CORE/MAC/src/pe/lim/limProcessTdls.c
index ceb2df21c3e2..0d8200cab4fe 100644
--- a/CORE/MAC/src/pe/lim/limProcessTdls.c
+++ b/CORE/MAC/src/pe/lim/limProcessTdls.c
@@ -2316,8 +2316,15 @@ static void limTdlsUpdateHashNodeInfo(tpAniSirGlobal pMac, tDphHashNode *pStaDs,
{
pStaDs->mlmStaContext.htCapability = 1 ;
pStaDs->htGreenfield = htCaps->greenField ;
- pStaDs->htSupportedChannelWidthSet = htCaps->supportedChannelWidthSet ;
- pStaDs->htMIMOPSState = htCaps->mimoPowerSave ;
+ /*
+ * pStaDs->htSupportedChannelWidthSet should have the base channel
+ * capability. The htSupportedChannelWidthSet of the TDLS link on
+ * base channel should be less than or equal to channel width of
+ * STA-AP link. So take this setting from the psessionEntry.
+ */
+ pStaDs->htSupportedChannelWidthSet =
+ psessionEntry->htSupportedChannelWidthSet;
+ pStaDs->htMIMOPSState = htCaps->mimoPowerSave ;
pStaDs->htMaxAmsduLength = htCaps->maximalAMSDUsize;
pStaDs->htAMpduDensity = htCaps->mpduDensity;
pStaDs->htDsssCckRate40MHzSupport = htCaps->dsssCckMode40MHz ;