summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish Kumar Dhanotiya <adhanoti@codeaurora.org>2018-06-19 21:57:14 +0530
committernshrivas <nshrivas@codeaurora.org>2018-06-28 09:52:34 -0700
commit37c9bd0d689ea707cb7e334d9ec10d0a73fa777d (patch)
tree41b336c3397f6f4e4d3d86a2b0c745ac60fef36a
parent392e7bb85f3ff19b0c40f16353c1571c5d116692 (diff)
qcacld-3.0: Do not select any invalid channel from acs list
Driver is selecting first channel from the preferred channel list if no channel is selected from the sap channel select algorithm. This leads to the selection of an invalid channel if the entire preferred channel list is invalid. To resolve this issue, do not select any channel from the preferred channel list if the entire list is invalid or if the entire list is unsafe. Change-Id: Ic90416fe62f854e2c1f124884c200876f543caba CRs-Fixed: 2234142
-rw-r--r--core/sap/src/sap_api_link_cntl.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/core/sap/src/sap_api_link_cntl.c b/core/sap/src/sap_api_link_cntl.c
index 4bc0477f7581..d019bbe058ce 100644
--- a/core/sap/src/sap_api_link_cntl.c
+++ b/core/sap/src/sap_api_link_cntl.c
@@ -155,16 +155,6 @@ QDF_STATUS wlansap_scan_callback(tHalHandle hal_handle,
__func__, scan_id);
#endif
operChannel = sap_select_channel(hal_handle, sap_ctx, result);
- if (!operChannel) {
- QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
- "No channel was selected from preferred channel for Operating channel");
-
- operChannel = sap_ctx->acs_cfg->start_ch;
-
- QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
- "Selecting operating channel as starting channel from preferred channel list: %d",
- operChannel);
- }
sme_scan_result_purge(hal_handle, result);
break;
@@ -364,16 +354,6 @@ wlansap_pre_start_bss_acs_scan_callback(tHalHandle hal_handle, void *pcontext,
}
#endif
oper_channel = sap_select_channel(hal_handle, sap_ctx, presult);
- if (!oper_channel) {
- QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
- "No channel was selected from preferred channel for Operating channel");
-
- oper_channel = sap_ctx->acs_cfg->start_ch;
-
- QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
- "Selecting operating channel as starting channel from preferred channel list: %d",
- oper_channel);
- }
sme_scan_result_purge(hal_handle, presult);
}