summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCNSS_WLAN Service <cnssbldsw@qualcomm.com>2017-08-16 18:33:50 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-08-16 18:33:50 -0700
commitee40a3bce26e949463a3d961c67bfdb4e40bb633 (patch)
treea6c7aca6ef93a321d3c6493502f634e85d208fe1
parent3af045b6c49ce73948972cc23a5721e494c1c7c7 (diff)
parent832dcbe662deda11e634a31460c0e9e1d6ad75c4 (diff)
Merge "qcacld-3.0: Crash during con_mod_handler" into wlan-cld3.driver.lnx.1.1
-rw-r--r--core/hdd/src/wlan_hdd_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 3c7e887c124c..6f4d1645a1e3 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -11528,15 +11528,15 @@ static int __con_mode_handler(const char *kmessage, struct kernel_param *kp,
goto reset_flags;
}
- /* Cleanup present mode before switching to new mode */
- hdd_cleanup_present_mode(hdd_ctx, curr_mode);
-
ret = hdd_wlan_stop_modules(hdd_ctx, true);
if (ret) {
hdd_err("Stop wlan modules failed");
goto reset_flags;
}
+ /* Cleanup present mode before switching to new mode */
+ hdd_cleanup_present_mode(hdd_ctx, curr_mode);
+
hdd_set_conparam(con_mode);
/* Register for new con_mode & then kick_start modules again */