mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Update band to ICM module
ICM does not support hw_mode=any at present. When hw_mode is set to any in hostapd.conf, HOST driver choose one band out of 2.4Ghz and 5Ghz based on "acs_freq_band" ini item and update the ACS and PCL channel list accordingly. But currently driver does not send updated band to ICM and so ICM still gets BAND_ALL from HOST driver which is INVALID for ICM module. As a result ICM algorithm does not run and channel selection fails. Send Updated band to ICM and also update channel width accordingly for 2.4Ghz band as it does not support 80/160/80PLUS80 Mhz. Change-Id: I13593a3c59c204d1ff7677e67d96d039c9456568 CRs-Fixed: 2196247
This commit is contained in:
parent
e126751324
commit
e994970c2a
1 changed files with 10 additions and 2 deletions
|
|
@ -2178,10 +2178,18 @@ static void hdd_get_scan_band(struct hdd_context *hdd_ctx,
|
|||
hdd_err("invalid band");
|
||||
if (HDD_EXTERNAL_ACS_FREQ_BAND_24GHZ ==
|
||||
hdd_ctx->config->external_acs_freq_band)
|
||||
hdd_update_acs_channel_list(sap_config, BAND_2G);
|
||||
*band = BAND_2G;
|
||||
else
|
||||
hdd_update_acs_channel_list(sap_config, BAND_5G);
|
||||
*band = BAND_5G;
|
||||
|
||||
hdd_update_acs_channel_list(sap_config, *band);
|
||||
}
|
||||
|
||||
if (*band == BAND_2G &&
|
||||
(sap_config->acs_cfg.ch_width == CH_WIDTH_80MHZ ||
|
||||
sap_config->acs_cfg.ch_width == CH_WIDTH_160MHZ ||
|
||||
sap_config->acs_cfg.ch_width == CH_WIDTH_80P80MHZ))
|
||||
sap_config->acs_cfg.ch_width = CH_WIDTH_40MHZ;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue