mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
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:
parent
1bf0b3551b
commit
32788c8588
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue