diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 1a1e7a84e486..f3a2f437263d 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -3296,6 +3296,9 @@ void wlan_hdd_cfg80211_acs_ch_select_evt(struct hdd_adapter *adapter) uint32_t id = QCA_NL80211_VENDOR_SUBCMD_DO_ACS_INDEX; uint32_t len = hdd_get_acs_evt_data_len(); + qdf_atomic_set(&adapter->session.ap.acs_in_progress, 0); + qdf_event_set(&adapter->acs_complete_event); + vendor_event = cfg80211_vendor_event_alloc(hdd_ctx->wiphy, &adapter->wdev, len, id, GFP_KERNEL); diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 1cd19804e141..37d8c5f760a0 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -2580,8 +2580,6 @@ QDF_STATUS hdd_hostapd_sap_event_cb(struct sap_event *sap_event, ap_ctx->sap_config.acs_cfg.ch_width = sap_event->sapevt.sap_ch_selected.ch_width; wlan_hdd_cfg80211_acs_ch_select_evt(adapter); - qdf_atomic_set(&adapter->session.ap.acs_in_progress, 0); - qdf_event_set(&adapter->acs_complete_event); return QDF_STATUS_SUCCESS; case eSAP_ECSA_CHANGE_CHAN_IND: