mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
qcacld-3.0: Restore pdev for module start/stop and SSR cases
For module start/stop and SSR cases, pdev is reused so it needs to be restored to MAC/WMA contexts again. Change-Id: Ifce95437d2c32a71c9376164f821f4e27df38409 CRs-fixed: 2021415
This commit is contained in:
parent
5fe30ddee8
commit
e3e86ab602
1 changed files with 5 additions and 3 deletions
|
|
@ -1382,10 +1382,12 @@ void hdd_update_tgt_cfg(void *context, void *param)
|
|||
struct cds_config_info *cds_cfg = cds_get_ini_config();
|
||||
uint8_t antenna_mode;
|
||||
|
||||
/* Reuse same pdev for module stop and start */
|
||||
/* Reuse same pdev for module start/stop or SSR */
|
||||
if ((hdd_get_conparam() == QDF_GLOBAL_FTM_MODE) ||
|
||||
(!cds_is_driver_loading())) {
|
||||
hdd_err("Reuse pdev for module start/stop");
|
||||
!cds_is_driver_loading()) {
|
||||
hdd_err("Reuse pdev for module start/stop or SSR");
|
||||
/* Restore pdev to MAC/WMA contexts */
|
||||
sme_store_pdev(hdd_ctx->hHal, hdd_ctx->hdd_pdev);
|
||||
} else {
|
||||
ret = hdd_objmgr_create_and_store_pdev(hdd_ctx);
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue