diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 3e5228301bdb..213ef3afb208 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6357,8 +6357,6 @@ static void hdd_wlan_exit(struct hdd_context *hdd_ctx) unregister_netdevice_notifier(&hdd_netdev_notifier); - hdd_close_all_adapters(hdd_ctx, false); - hdd_wlan_stop_modules(hdd_ctx, false); hdd_driver_memdump_deinit(); @@ -6383,6 +6381,8 @@ static void hdd_wlan_exit(struct hdd_context *hdd_ctx) hdd_request_manager_deinit(); + hdd_close_all_adapters(hdd_ctx, false); + hdd_ipa_cleanup(hdd_ctx); wlansap_global_deinit();