Prechádzať zdrojové kódy

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
Naveen Rawat 9 rokov pred
rodič
commit
3e8322c055
1 zmenil súbory, kde vykonal 8 pridanie a 1 odobranie
  1. 8 1
      core/mac/src/pe/lim/lim_process_tdls.c

+ 8 - 1
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;