diff options
| -rw-r--r-- | core/sap/src/sap_api_link_cntl.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/core/sap/src/sap_api_link_cntl.c b/core/sap/src/sap_api_link_cntl.c index 4e3e9fe68fe3..94a2fe95f287 100644 --- a/core/sap/src/sap_api_link_cntl.c +++ b/core/sap/src/sap_api_link_cntl.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -358,19 +358,11 @@ wlansap_pre_start_bss_acs_scan_callback(tHalHandle hal_handle, void *pcontext, } 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; |
