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
This commit is contained in:
Nitesh Shah 2016-04-29 12:45:08 +05:30 committed by syphyr
parent 1bf0b3551b
commit 32788c8588

View file

@ -15772,6 +15772,15 @@ void hdd_select_cbmode(hdd_adapter_t *pAdapter, v_U8_t operationChannel,
iniDot11Mode);
*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: