qcacld-3.0: Deinitialize the scan pdev OS private
Deinitialize the scan pdev os private member
as part of the hdd deinit sequence.
Change-Id: I451000ac5d883418e380b72f281663c57b276f2d
CRs-Fixed: 2033622
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 2b44004..277dc39 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -5410,9 +5410,7 @@
* the expectation is that by the time Request Full Power has
* completed, all scans will be cancelled
*/
-#ifndef NAPIER_SCAN
- hdd_cleanup_scan_queue(hdd_ctx);
-#endif
+ wlan_cfg80211_cleanup_scan_queue(hdd_ctx->hdd_pdev);
hdd_abort_mac_scan_all_adapters(hdd_ctx);
hdd_abort_sched_scan_all_adapters(hdd_ctx);
hdd_stop_all_adapters(hdd_ctx);