qcacmn: Reset agile precac frequency during channel change
During abrupt channel change (e.g. iwconfig), the vap is brought down and then brought back up. Now if the Agile detector is running during this period, the detector is turned off as part of vap down. When the vap comes back up, as part of starting the Agile detector, a status of OCAC_SUCCESS and frequency of dfs->dfs_agile_precac_freq is sent to the API (dfs_start_agile_precac_timer). The dfs_agile_precac_freq variable was meant to be 0 as part of starting the timer but since it was never cleared, that freq was moved to Agile CAC done state immediately. Clear the dfs_agile_precac_freq as part of vap down in addition to stopping the Agile precac timer. Change-Id: Ife117277a5d85911ae310e19a406f88fb9a544f0 CRs-Fixed: 2467077
This commit is contained in:
@@ -395,6 +395,7 @@ QDF_STATUS tgt_dfs_set_agile_precac_state(struct wlan_objmgr_pdev *pdev,
|
||||
if (!dfs->dfs_soc_obj->precac_state_started) {
|
||||
for (i = 0; i < dfs->dfs_soc_obj->num_dfs_privs; i++)
|
||||
dfs->dfs_soc_obj->dfs_priv[i].agile_precac_active = 0;
|
||||
dfs->dfs_agile_precac_freq = 0;
|
||||
}
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
Reference in New Issue
Block a user