diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 10af574ccc91..b25d6d543ab6 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -2085,6 +2085,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event, } qdf_atomic_set(&adapter->ch_switch_in_progress, 0); + hdd_stop_tsf_sync(adapter); break; case eSAP_DFS_CAC_INTERRUPTED: /* @@ -5959,7 +5960,6 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy, } } clear_bit(SOFTAP_BSS_STARTED, &adapter->event_flags); - hdd_stop_tsf_sync(adapter); /*BSS stopped, clear the active sessions for this device mode*/ policy_mgr_decr_session_set_pcl(hdd_ctx->psoc, @@ -6651,8 +6651,6 @@ static int __wlan_hdd_cfg80211_start_ap(struct wiphy *wiphy, goto err_start_bss; } - hdd_start_tsf_sync(adapter); - if (wdev->chandef.chan->center_freq != params->chandef.chan->center_freq) params->chandef = wdev->chandef;