Переглянути джерело

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
Nitesh Shah 7 роки тому
батько
коміт
d6b76060c3
1 змінених файлів з 0 додано та 3 видалено
  1. 0 3
      core/hdd/src/wlan_hdd_hostapd.c

+ 0 - 3
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