From cc76d2332bdabc35cbdd9d9b070445633e76a36b Mon Sep 17 00:00:00 2001 From: "Edhar, Mahesh Kumar" Date: Mon, 1 Dec 2014 19:25:11 +0530 Subject: qcacld: WMA:changes to reset last radar found channel information. we wont post the radar detection indication to core stack if last radar found channel matches the current channel even after stopping and starting the softAp. The above issue is addressed by resetting the last radar found channel information while adding BSS on same channel. Change-Id: I21692bf0a34b7db09f778770821b8bbc5c5002f2 CRs-fixed: 764575 --- CORE/SERVICES/WMA/wma.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index 5d8ac2a43def..0933cfb32c44 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -12791,6 +12791,13 @@ static void wma_add_bss(tp_wma_handle wma, tpAddBssParams params) switch(params->halPersona) { case VOS_STA_SAP_MODE: + /*If current bring up SAP 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; case VOS_P2P_GO_MODE: wma_add_bss_ap_mode(wma, params); break; -- cgit v1.2.3