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
This commit is contained in:
Nitesh Shah 2017-06-07 15:20:57 +05:30 • committed by snandini
commit d6b76060c3

View file

@ -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