From 3e8322c0558efdc32ee2f814c992cf30c3e8a39f Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Tue, 3 Nov 2015 11:05:57 -0800 Subject: [PATCH] qcacld-3.0: Set channel width for TDLS link on base channel This is qcacld-2.0 to qcacld-3.0 propagation 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 --- core/mac/src/pe/lim/lim_process_tdls.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/mac/src/pe/lim/lim_process_tdls.c b/core/mac/src/pe/lim/lim_process_tdls.c index fa5a0ab3010c..2c883e1f1181 100644 --- a/core/mac/src/pe/lim/lim_process_tdls.c +++ b/core/mac/src/pe/lim/lim_process_tdls.c @@ -2253,8 +2253,15 @@ static void lim_tdls_update_hash_node_info(tpAniSirGlobal pMac, if (htCaps->present) { pStaDs->mlmStaContext.htCapability = 1; pStaDs->htGreenfield = htCaps->greenField; + /* + * 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 = - htCaps->supportedChannelWidthSet; + psessionEntry->htSupportedChannelWidthSet; pStaDs->htMIMOPSState = htCaps->mimoPowerSave; pStaDs->htMaxAmsduLength = htCaps->maximalAMSDUsize; pStaDs->htAMpduDensity = htCaps->mpduDensity;