summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaveen Rawat <nrawat@qca.qualcomm.com>2014-08-07 15:12:26 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-08-12 17:54:35 -0700
commita3804b4ddf0df614181aac26dda6549908bb475d (patch)
tree8a26036e4be2c4c4fd7b760db3052aad81d9f14d
parent13abd6a5222c6eecb62dfc6426f046da691283dd (diff)
qcacld: fix for incorrect value of width in HT Cap in ProbeRequest
We should be checking the INI parameter (enable/disable) for channels bonding rather than blindly setting the channel width set for 2.4 GHz band. Change-Id: I8193ce48a91e6073bcceb6f513fb1aae6c68cb92 CRs-Fixed: 706435
-rw-r--r--CORE/MAC/src/pe/lim/limSendManagementFrames.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c
index c32acd7a005c..355cf4a7ea16 100644
--- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c
+++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c
@@ -502,8 +502,13 @@ limSendProbeReqMgmtFrame(tpAniSirGlobal pMac,
/* Set channelbonding information as "disabled" when tunned to a 2.4 GHz channel */
if( nChannelNum <= SIR_11B_CHANNEL_END)
{
- pr.HTCaps.supportedChannelWidthSet = eHT_CHANNEL_WIDTH_20MHZ;
- pr.HTCaps.shortGI40MHz = 0;
+ if (pMac->roam.configParam.channelBondingMode24GHz
+ == PHY_SINGLE_CHANNEL_CENTERED) {
+ pr.HTCaps.supportedChannelWidthSet = eHT_CHANNEL_WIDTH_20MHZ;
+ pr.HTCaps.shortGI40MHz = 0;
+ } else {
+ pr.HTCaps.supportedChannelWidthSet = eHT_CHANNEL_WIDTH_40MHZ;
+ }
}
#ifdef WLAN_FEATURE_11AC