diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 0b48b6926d98..83eb2e970850 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -2190,20 +2190,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent, hdd_err("Failed to find sta id status: %d", qdf_status); return QDF_STATUS_E_FAILURE; } -#ifdef IPA_OFFLOAD - if (hdd_ipa_is_enabled(hdd_ctx)) { - status = hdd_ipa_wlan_evt(adapter, staId, - HDD_IPA_CLIENT_DISCONNECT, - pSapEvent->sapevt. - sapStationDisassocCompleteEvent. - staMac.bytes); - if (status) { - hdd_err("WLAN_CLIENT_DISCONNECT event failed"); - goto stopbss; - } - } -#endif DPTRACE(qdf_dp_trace_mgmt_pkt(QDF_DP_TRACE_MGMT_PACKET_RECORD, adapter->session_id, QDF_TRACE_DEFAULT_PDEV_ID, diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c index 41dce87b481f..9f09de0f8057 100644 --- a/core/hdd/src/wlan_hdd_softap_tx_rx.c +++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c @@ -861,6 +861,13 @@ QDF_STATUS hdd_softap_deregister_sta(struct hdd_adapter *adapter, adapter->sta_info[staId].sta_mac.bytes); if (adapter->sta_info[staId].in_use) { + if (hdd_ipa_uc_is_enabled(hdd_ctx)) { + hdd_ipa_wlan_evt(adapter, + adapter->sta_info[staId].sta_id, + HDD_IPA_CLIENT_DISCONNECT, + adapter->sta_info[staId].sta_mac. + bytes); + } spin_lock_bh(&adapter->sta_info_lock); qdf_mem_zero(&adapter->sta_info[staId], sizeof(struct hdd_station_info));