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
This commit is contained in:
Naveen Rawat 2015-11-03 11:05:57 -08:00 committed by Prakash Dhavali
parent 10ccf878f9
commit 3e8322c055

View File

@ -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;