qcacld-3.0: Select def chan if no chan is safe in ACS chan list
If no channel is safe in ACS channel list, select default channel instead of returning start failure for SAP. Change-Id: I974a573f5000720a62e58aaff5a71412c2fae7bf CRs-Fixed: 2424847
This commit is contained in:

committato da
nshrivas

parent
1b1f22d5db
commit
2913bd11f5
@@ -242,19 +242,11 @@ QDF_STATUS wlansap_pre_start_bss_acs_scan_callback(mac_handle_t mac_handle,
|
||||
}
|
||||
|
||||
if (oper_channel == SAP_CHANNEL_NOT_SELECTED) {
|
||||
#ifdef SOFTAP_CHANNEL_RANGE
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
|
||||
FL("No suitable channel selected"));
|
||||
|
||||
sap_ctx->sap_state = eSAP_ACS_CHANNEL_SELECTED;
|
||||
sap_ctx->sap_status = eSAP_STATUS_FAILURE;
|
||||
goto close_session;
|
||||
} else {
|
||||
#else
|
||||
FL("No suitable channel, so select default channel"));
|
||||
sap_ctx->channel =
|
||||
sap_select_default_oper_chan(sap_ctx->acs_cfg);
|
||||
} else {
|
||||
#endif
|
||||
/* Valid Channel Found from scan results. */
|
||||
sap_ctx->acs_cfg->pri_ch = oper_channel;
|
||||
sap_ctx->channel = oper_channel;
|
||||
|
Fai riferimento in un nuovo problema
Block a user