diff options
| author | Abhishek Singh <absingh@qti.qualcomm.com> | 2014-02-03 16:47:17 +0530 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-04-11 08:44:26 -0700 |
| commit | 4e79075f5f6f3de00eb9bd9b9ff601ef79b11ddb (patch) | |
| tree | 6ea3438337d7ad9014bf03f40d3d155d0ede1e55 | |
| parent | 967fedc71f976a8cd5cc3494457c20bd09d94478 (diff) | |
wlan: Probe req contain 11ac caps even in 2.4Ghz band
The probe req should not send 11ac caps IE in 2.4GHz channels,
unless enableVhtFor24GHz is enable in INI file.
Added check that if channel is 2.4GHz and dot11mode is 11ac change
dot11mode to 11n if enableVhtFor24GHz is not set.
Change-Id: Ica783517187031ae48ff9748d77ead6a31572fbb
CRs-Fixed: 643562
| -rw-r--r-- | CORE/MAC/src/pe/lim/limSendManagementFrames.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c index f29b07eba84f..d9064c3047b1 100644 --- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c +++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c @@ -444,6 +444,15 @@ limSendProbeReqMgmtFrame(tpAniSirGlobal pMac, return eSIR_FAILURE; #endif + /* The probe req should not send 11ac capabilieties if band is 2.4GHz, + * unless enableVhtFor24GHz is enabled in INI. So if enableVhtFor24GHz + * is false and dot11mode is 11ac set it to 11n. + */ + if ( nChannelNum <= SIR_11B_CHANNEL_END && + ( FALSE == pMac->roam.configParam.enableVhtFor24GHz ) && + ( WNI_CFG_DOT11_MODE_11AC == dot11mode || + WNI_CFG_DOT11_MODE_11AC_ONLY == dot11mode ) ) + dot11mode = WNI_CFG_DOT11_MODE_11N; /* * session context may or may not be present, when probe request needs to be sent out. * following cases exist: |
