mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
Revert "qcacld-3.0: Fix resource leaks when change con_mode"
This reverts change If06be4c9627eb345fb52609351417b155d336a4e for the
following reasons:
1) hdd_debug_domain_set() should never be called outside of module
start/stop
2) It effectively reverts I2fade59d1e4a27620cecadb91f69866e79c85612
Change-Id: Id132c516dd2600110912539df37eb1932730fef1
CRs-Fixed: 2248600
This commit is contained in:
parent
f2d16985f3
commit
dd4e50fad1
1 changed files with 2 additions and 8 deletions
|
|
@ -12568,23 +12568,17 @@ static int __con_mode_handler(const char *kmessage,
|
|||
/* ensure adapters are stopped */
|
||||
hdd_stop_present_mode(hdd_ctx, curr_mode);
|
||||
|
||||
/* 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(new_con_mode);
|
||||
|
||||
/*
|
||||
* Set ACTIVE domain before adapters created, otherwise check domain
|
||||
* match will fail when cleanup adapters.
|
||||
*/
|
||||
hdd_debug_domain_set(QDF_DEBUG_DOMAIN_ACTIVE);
|
||||
/* Register for new con_mode & then kick_start modules again */
|
||||
ret = hdd_register_req_mode(hdd_ctx, new_con_mode);
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue