From d6b76060c36aba17acb65f3cad704cdba911c504 Mon Sep 17 00:00:00 2001 From: Nitesh Shah Date: Wed, 7 Jun 2017 15:20:57 +0530 Subject: [PATCH] qcacld-3.0: Avoid calling decrement session twice in SAP removal While disabling SAP session, policy_mgr_decr_session_set_pcl() is getting called twice, one from mc_thread (hdd_hostapd_sap_ event_cb()) and other from hostapd (__wlan_hdd_cfg80211_stop _ap()). This can corrupt the pm_conn_connection_info table. This change removes policy_mgr_decr_session_set_pcl() getting called from hdd_hostapd_sap_event_cb(). Change-Id: Ib16af839060cb2dd3cb9f9957fd6dbb40c3b79dc CRs-Fixed: 2055025 --- core/hdd/src/wlan_hdd_hostapd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 0dbc7672917c..fbaab8217f26 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -2138,9 +2138,6 @@ stopbss: we_custom_event_generic = we_custom_event; wireless_send_event(dev, we_event, &wrqu, (char *)we_custom_event_generic); - policy_mgr_decr_session_set_pcl(pHddCtx->hdd_psoc, - pHostapdAdapter->device_mode, - pHostapdAdapter->sessionId); /* once the event is set, structure dev/pHostapdAdapter should * not be touched since they are now subject to being deleted