qcacld-3.0: Fix sap_num_connected_sta leak
When SAP stop and ref-STA reconnect event hit together, the reconnect
IPA client connect event add sap_num_connected_sta but SAP stop process
clear client STA without send IPA client disconnect event.
Fix it by moving hdd_ipa_wlan_evt into hdd_softap_deregister_sta which
will also been called when sap stopped.
Change-Id: I7abe53e8e395c01df5471697f3370d8b5ae792fb
CRs-Fixed: 2136199
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index 41dce87..9f09de0 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 @@
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));