diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c index 95ca153359ca..5e5fc1f5e18f 100644 --- a/core/hdd/src/wlan_hdd_driver_ops.c +++ b/core/hdd/src/wlan_hdd_driver_ops.c @@ -1487,7 +1487,7 @@ static void wlan_hdd_handle_the_pld_uevent(struct pld_uevent_data *uevent) hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); if (hdd_ctx != NULL) wlan_cfg80211_cleanup_scan_queue( - hdd_ctx->hdd_pdev); + hdd_ctx->hdd_pdev, NULL); break; default: break; diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 8047684c510a..9129d9d15862 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -623,7 +623,7 @@ static int __hdd_netdev_notifier_call(struct notifier_block *nb, * flag after which driver does not send the cfg80211_scan_done. * Ensure to cleanup the scan queue in NETDEV_GOING_DOWN */ - wlan_cfg80211_cleanup_scan_queue(hdd_ctx->hdd_pdev); + wlan_cfg80211_cleanup_scan_queue(hdd_ctx->hdd_pdev, dev); break; default: @@ -6462,7 +6462,7 @@ static void hdd_wlan_exit(struct hdd_context *hdd_ctx) */ hdd_set_idle_ps_config(hdd_ctx, false); /* clear the scan queue in all the scenarios */ - wlan_cfg80211_cleanup_scan_queue(hdd_ctx->hdd_pdev); + wlan_cfg80211_cleanup_scan_queue(hdd_ctx->hdd_pdev, NULL); if (driver_status != DRIVER_MODULES_CLOSED) { hdd_unregister_wext_all_adapters(hdd_ctx); @@ -12144,7 +12144,7 @@ static void hdd_stop_present_mode(struct hdd_context *hdd_ctx, case QDF_GLOBAL_MISSION_MODE: case QDF_GLOBAL_FTM_MODE: hdd_abort_mac_scan_all_adapters(hdd_ctx); - wlan_cfg80211_cleanup_scan_queue(hdd_ctx->hdd_pdev); + wlan_cfg80211_cleanup_scan_queue(hdd_ctx->hdd_pdev, NULL); hdd_stop_all_adapters(hdd_ctx); break;