summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBala Venkatesh <bjavvaji@codeaurora.org>2019-07-22 18:05:45 +0530
committerSunil Ravi <sunilravi@google.com>2019-08-06 18:30:28 -0700
commit422f064f2021fa3c2e3e7d12de28f564562dc2ed (patch)
treeebc5decdd7cebe4e68af10c94d733b4ea05c1b88
parentb0ef98dff22c353d1f451dc9dcb53cb1b067c10e (diff)
downloadqcacld-422f064f2021fa3c2e3e7d12de28f564562dc2ed.tar.gz
qcacld-3.0: Remove safe channel check in validate channel switch
Currently, channel switch validated as true only in case of safe channel. For unsafe channel, channel switch will be failed. Change-Id: Ic1d11525c8ad5d93ffb31e5802083e73956704c0 CRs-Fixed: 2494488 Bug: 135760299 Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
-rw-r--r--core/cds/src/cds_concurrency.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/core/cds/src/cds_concurrency.c b/core/cds/src/cds_concurrency.c
index f39105c458..9dc0b621dc 100644
--- a/core/cds/src/cds_concurrency.c
+++ b/core/cds/src/cds_concurrency.c
@@ -10891,7 +10891,6 @@ bool cds_is_valid_channel_for_channel_switch(uint8_t channel)
uint32_t sap_count;
enum channel_state state;
hdd_context_t *hdd_ctx;
- bool is_safe;
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
@@ -10903,14 +10902,12 @@ bool cds_is_valid_channel_for_channel_switch(uint8_t channel)
sta_sap_scc_on_dfs_chan = cds_is_sta_sap_scc_allowed_on_dfs_channel();
sap_count = cds_mode_specific_connection_count(CDS_SAP_MODE, NULL);
state = cds_get_channel_state(channel);
- is_safe = cds_is_safe_channel(channel);
- cds_debug("is_safe %u, sta_sap_scc_on_dfs_chan %u, sap_count %u, channel %u, state %u",
- is_safe, sta_sap_scc_on_dfs_chan, sap_count, channel,
- state);
+ cds_debug("sta_sap_scc_on_dfs_chan %u, sap_count %u, channel %u, state %u",
+ sta_sap_scc_on_dfs_chan, sap_count, channel, state);
- if (is_safe && ((state == CHANNEL_STATE_ENABLE) || (sap_count == 0) ||
- ((state == CHANNEL_STATE_DFS) && sta_sap_scc_on_dfs_chan))) {
+ if ((state == CHANNEL_STATE_ENABLE) || (sap_count == 0) ||
+ ((state == CHANNEL_STATE_DFS) && sta_sap_scc_on_dfs_chan)) {
cds_debug("Valid channel for channel switch");
return true;
}