summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Singh <absingh@codeaurora.org>2019-04-01 17:01:16 +0530
committernshrivas <nshrivas@codeaurora.org>2019-04-04 04:14:56 -0700
commit9d89ddbef23e44c1c9836c33ae951d4a4d3619db (patch)
tree1bbfae580779cf2ebe4b53107b10b5ee5fc8fc72
parent125bcaccd4a03ede387124025ef46ea9dc465e25 (diff)
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
-rw-r--r--core/sap/src/sap_api_link_cntl.c12
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;