summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKapil Gupta <kapgupta@codeaurora.org>2017-04-11 18:17:06 +0530
committerSandeep Puligilla <spuligil@codeaurora.org>2017-04-11 12:36:57 -0700
commitba1843f1ca437b50979079b6788dc8bfbe419a62 (patch)
treedf837813c025a6bc7d6285bf5c8d9996b73cd41a
parent4cf8dea30f75119c289496a964bde796aed611ec (diff)
qcacld-3.0: Set WMI_CHAN_FLAG_DFS only in case of AP
FW monitors channel for dfs detection if WMI_CHAN_FLAG_DFS is set in vdev start. Add changes to set this flag only in case of AP. CRs-Fixed: 2030134 Change-Id: Ie1ac09cb412e393c50b9c6474f5cc6f400d9ec5a
-rw-r--r--core/wma/src/wma_dev_if.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c
index 7a41a49e914a..56b4d7b4c5fd 100644
--- a/core/wma/src/wma_dev_if.c
+++ b/core/wma/src/wma_dev_if.c
@@ -2097,25 +2097,9 @@ QDF_STATUS wma_vdev_start(tp_wma_handle wma,
else if (req->is_quarter_rate)
temp_chan_info |= (1 << WMI_CHAN_FLAG_QUARTER_RATE);
- /*
- * If the channel has DFS set, flip on radar reporting.
- *
- * It may be that this should only be done for IBSS/hostap operation
- * as this flag may be interpreted (at some point in the future)
- * by the firmware as "oh, and please do radar DETECTION."
- *
- * If that is ever the case we would insert the decision whether to
- * enable the firmware flag here.
- */
-
- /*
- * If the Channel is DFS,
- * set the WMI_CHAN_FLAG_DFS flag
- */
params.is_dfs = req->is_dfs;
params.is_restart = isRestart;
if ((QDF_GLOBAL_MONITOR_MODE != cds_get_conparam()) && req->is_dfs) {
- params.flag_dfs = WMI_CHAN_FLAG_DFS;
temp_chan_info |= (1 << WMI_CHAN_FLAG_DFS);
params.dis_hw_ack = true;
req->dfs_pri_multiplier = wma->dfs_pri_multiplier;
@@ -2133,6 +2117,11 @@ QDF_STATUS wma_vdev_start(tp_wma_handle wma,
*/
if (wma_is_vdev_in_ap_mode(wma, params.vdev_id) == true) {
/*
+ * If the Channel is DFS,
+ * set the WMI_CHAN_FLAG_DFS flag
+ */
+ params.flag_dfs = WMI_CHAN_FLAG_DFS;
+ /*
* If DFS regulatory domain is invalid,
* then, DFS radar filters intialization
* will fail. So, do not configure the