qcacld-3.0: Remove the check for 0 scan results
Currently the logic in ACS for 0 scan results is to select default channel from the ACS channel list, but the available channels may not always be capable of the max BW sent by ACS, for example in HW MODE as ANY then all the channels 2.4ghz and 5ghz would be present in the ACS channel list, 2.4ghz channels at the first followed by the 5ghz channels, and if the scan results are 0 then 2.4ghz channel would be selected as default which should not be the case. Fix is to remove the check to select default channel and let me ACS algorithm decide the best channel accounting other factors such as noise floor and max tx rx clear count, power also. Change-Id: I21e5d73e12fffb00c4996c406d62361b74db629f CRs-Fixed: 2601141
This commit is contained in:

committed by
nshrivas

parent
196bf2f5b7
commit
37151a5812
@@ -2257,17 +2257,6 @@ uint32_t sap_select_channel(mac_handle_t mac_handle,
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
|
||||
"In %s, Running SAP Ch Select", __func__);
|
||||
|
||||
/*
|
||||
* If ACS weight is not enabled on noise_floor/channel_free/tx_power,
|
||||
* then skip acs process if no bss found.
|
||||
*/
|
||||
if ((!scan_list || !qdf_list_size(scan_list)) &&
|
||||
!(sap_ctx->auto_channel_select_weight & 0xffff00)) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
|
||||
FL("No external AP present, select default channel"));
|
||||
return sap_select_default_oper_chan(sap_ctx->acs_cfg);
|
||||
}
|
||||
|
||||
/* Initialize the structure pointed by spect_info */
|
||||
if (sap_chan_sel_init(mac_handle, spect_info, sap_ctx) != true) {
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
|
||||
|
Reference in New Issue
Block a user