diff options
| author | Edhar, Mahesh Kumar <c_medhar@qti.qualcomm.com> | 2014-12-01 19:25:11 +0530 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2014-12-03 13:02:42 +0530 |
| commit | cc76d2332bdabc35cbdd9d9b070445633e76a36b (patch) | |
| tree | fe09de81ecc9a16e52a778e204d28f78468648de | |
| parent | 8a8a23f4312292e9030020f52cff50134eccf780 (diff) | |
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
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |
