summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasti, Narayanraddi <c_nmasti@qti.qualcomm.com>2015-02-26 10:39:39 +0530
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-03-02 17:11:26 +0530
commit3daeba17e257900a3bd907a24390be7f6e44a995 (patch)
treef686e3809c154adb0a1d2e886f037d3f64c49663
parent31e311cbe323ec48344027a34344568152b0a756 (diff)
qcacld: Advertise HT40 capability in TDLS frames
Advertise HT40 capability in TDLS Discovery Response, Setup Request and Setup Response frames. Change-Id: Idf3be0196e360f78d79035889fd50b4b856b39b8 CRs-Fixed: 794355
-rw-r--r--CORE/MAC/src/pe/lim/limProcessTdls.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessTdls.c b/CORE/MAC/src/pe/lim/limProcessTdls.c
index 50c820692fc3..4148b00e50cb 100644
--- a/CORE/MAC/src/pe/lim/limProcessTdls.c
+++ b/CORE/MAC/src/pe/lim/limProcessTdls.c
@@ -551,22 +551,16 @@ static void PopulateDot11fTdlsHtVhtCap(tpAniSirGlobal pMac, uint32 selfDot11Mode
{
/* Include HT Capability IE */
PopulateDot11fHTCaps( pMac, NULL, htCap );
- htCap->present = 1;
- if (psessionEntry->currentOperChannel <= SIR_11B_CHANNEL_END)
- {
- /* hardcode NO channel bonding in 2.4Ghz */
- htCap->supportedChannelWidthSet = 0;
- }
- else
- {
- //Placeholder to support different channel bonding mode of TDLS than AP.
- htCap->supportedChannelWidthSet = 1; // hardcode it to max
- }
+
+ /* Set channel width to 1 to indicate HT40 capability on TDLS link */
+ htCap->supportedChannelWidthSet = 1;
}
else
{
htCap->present = 0;
}
+ limLog(pMac, LOG1, FL("HT present = %hu, Chan Width = %hu"),
+ htCap->present, htCap->supportedChannelWidthSet);
#ifdef WLAN_FEATURE_11AC
if (((psessionEntry->currentOperChannel <= SIR_11B_CHANNEL_END) &&
pMac->roam.configParam.enableVhtFor24GHz) ||
@@ -592,6 +586,8 @@ static void PopulateDot11fTdlsHtVhtCap(tpAniSirGlobal pMac, uint32 selfDot11Mode
/* Vht Disable from ini in 2.4 GHz */
vhtCap->present = 0;
}
+ limLog(pMac, LOG1, FL("VHT present = %hu, Chan Width = %hu"),
+ vhtCap->present, vhtCap->supportedChannelWidthSet);
#endif
}