summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandrasekaran, Manishekar <cmshekar@qti.qualcomm.com>2015-03-30 16:42:29 +0530
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-03-31 20:57:52 +0530
commitf5903aceaade6de36f03b1ea06a01969c7fd6d03 (patch)
tree3367bdcd8534a4aed4744a61beeba42e1d2568a0
parent15877062c623788665496cfa8163b94a234d3703 (diff)
qcacld: Reset the last radar found channel during P2P MHS GO restart
When P2P MHS is brought up on a channel on which radar was detected previously, the last radar found channel is reinitialized. If this reset is not done, the subsequent radars detected will not be indicated to HDD since this will be treated as radars being detected on the last detected channel again. Change-Id: I611c8c3a583c49e67f56039f6d4de0e7fc4d8553 CRs-Fixed: 815061
-rw-r--r--CORE/SERVICES/WMA/wma.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c
index d4c312072e37..f79768b1e657 100644
--- a/CORE/SERVICES/WMA/wma.c
+++ b/CORE/SERVICES/WMA/wma.c
@@ -13631,6 +13631,13 @@ static void wma_add_bss(tp_wma_handle wma, tpAddBssParams params)
wma->dfs_ic->last_radar_found_chan)
wma->dfs_ic->last_radar_found_chan = 0;
case VOS_P2P_GO_MODE:
+ /*If current bring up P2P channel matches the previous
+ *radar found channel then reset the last_radar_found_chan
+ *variable to avoid race conditions.
+ */
+ if (params->currentOperChannel ==
+ wma->dfs_ic->last_radar_found_chan)
+ wma->dfs_ic->last_radar_found_chan = 0;
wma_add_bss_ap_mode(wma, params);
break;