summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitesh Shah <niteshs@qti.qualcomm.com>2016-04-29 12:45:08 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-05-02 17:26:38 +0530
commit2b286e28a67f1eb0d3e86332a60f7e54a27089ac (patch)
tree1f68b3584fa587c3be6855c5a754116595a6df62
parentda9a76ca5799911c7223a0d998d7502c1bf7e7f8 (diff)
qcacld-2.0: Set channel BW as 20 MHz for IBSS in 2.4 GHz
When IBSS is started in 2.4 GHz, it uses CBW40 by default. But the device doesn't support VHT40 in 2.4G for STA/IBSS as there is no support in firmware to do OBSS scan. Update cbmode as 20 MHz if the device is in IBSS mode and is operating in 2.4 GHz. Change-Id: I01fa0df44f8b6f9ada835c0fc80a46eb0da6d6d7 CRs-Fixed: 1009922
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 825ed9eab295..c84f43723b67 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -17349,6 +17349,14 @@ void hdd_select_cbmode(hdd_adapter_t *pAdapter, v_U8_t operationChannel,
*vht_channel_width =
(WLAN_HDD_GET_CTX(pAdapter))->cfg_ini->vhtChannelWidth;
+ /*
+ * In IBSS mode while operating in 2.4 GHz,
+ * the device will be configured to CBW 20
+ */
+ if ((WLAN_HDD_IBSS == pAdapter->device_mode) &&
+ (SIR_11B_CHANNEL_END >= operationChannel))
+ *vht_channel_width = eHT_CHANNEL_WIDTH_20MHZ;
+
switch ( iniDot11Mode )
{
case eHDD_DOT11_MODE_AUTO: