diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index ee6ff182e2..d6c2ff5d63 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -11223,9 +11223,6 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode) struct target_psoc_info *tgt_hdl; hdd_enter(); - - hdd_deregister_policy_manager_callback(hdd_ctx->psoc); - qdf_ctx = cds_get_context(QDF_MODULE_ID_QDF_DEVICE); if (!qdf_ctx) { hdd_err("QDF device context NULL"); @@ -11248,6 +11245,8 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode) } } + hdd_deregister_policy_manager_callback(hdd_ctx->psoc); + /* free user wowl patterns */ hdd_free_user_wowl_ptrns();