mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
qcacmn: Clear the scan list before destroy
cfg80211 scan list is not empty during the scan priv deinit/list destroy because of that qdf mem module triggered an assert. Clear the cfg80211 scan list before destroying the list. Change-Id: I391d3b91869d085ec6ff405b7ddca37d7002e5ca CRs-Fixed: 2136702
This commit is contained in:
parent
5d0d104798
commit
4bd7f8c513
1 changed files with 2 additions and 1 deletions
|
|
@ -1047,12 +1047,13 @@ QDF_STATUS wlan_cfg80211_scan_priv_deinit(struct wlan_objmgr_pdev *pdev)
|
|||
psoc = wlan_pdev_get_psoc(pdev);
|
||||
osif_priv = wlan_pdev_get_ospriv(pdev);
|
||||
|
||||
wlan_cfg80211_cleanup_scan_queue(pdev);
|
||||
scan_priv = osif_priv->osif_scan;
|
||||
osif_priv->osif_scan = NULL;
|
||||
ucfg_scan_unregister_requester(psoc, scan_priv->req_id);
|
||||
qdf_list_destroy(&scan_priv->scan_req_q);
|
||||
qdf_mutex_destroy(&scan_priv->scan_req_q_lock);
|
||||
qdf_mem_free(scan_priv);
|
||||
osif_priv->osif_scan = NULL;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue