qcacld-3.0: Abort all scan requests before SAP is stopped

Abort all outstanding scan requests on an SAP adapter synchronously
when the SAP adapter is to be stopped, so any scan callback
functions will not access the buffers for SAP adapter, ACS config,
etc. after they're freed.

Change-Id: Idc02b140c05a5de4dc652a547cd20b8d113447b6
CRs-Fixed: 2152962
This commit is contained in:
wadesong 2017-12-14 14:12:32 +08:00 • committed by snandini
commit f9b15ed483

View file

@ -4481,6 +4481,7 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx, struct hdd_adapter *ada
break;
case QDF_SAP_MODE:
wlan_hdd_scan_abort(adapter);
/* Flush IPA exception path packets */
sap_config = &adapter->session.ap.sap_config;
if (sap_config)