From 3daeba17e257900a3bd907a24390be7f6e44a995 Mon Sep 17 00:00:00 2001 From: "Masti, Narayanraddi" Date: Thu, 26 Feb 2015 10:39:39 +0530 Subject: 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 --- CORE/MAC/src/pe/lim/limProcessTdls.c | 18 +++++++----------- 1 file 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 } -- cgit v1.2.3