qcacld-3.0: Restore dual sta config after SSR

Save dual sta configuration in hdd context and
restore it after SSR. This allows driver STA + STA
connection in MCC/SCC.

Change-Id: Ia8bb8c845f0f76e7ce41ff32ab0a3bc6d5111018
CRs-Fixed: 2998225
此提交包含在:
abhinav kumar
2021-07-29 16:49:49 +05:30
提交者 Madan Koyyalamudi
父節點 89f3ce30ab
當前提交 a0e112969b
共有 5 個檔案被更改,包括 65 行新增3 行删除

查看文件

@@ -2422,16 +2422,18 @@ mlme_init_iot_cfg(struct wlan_objmgr_psoc *psoc,
}
/**
* mlme_init_primary_iface - Initialize primary iface
* mlme_init_dual_sta_config - Initialize dual sta configuratons
*
* @gen: Generic CFG config items
*
* Return: None
*/
static void
mlme_init_primary_iface(struct wlan_mlme_generic *gen)
mlme_init_dual_sta_config(struct wlan_mlme_generic *gen)
{
gen->dual_sta_policy.primary_vdev_id = WLAN_UMAC_VDEV_ID_MAX;
gen->dual_sta_policy.concurrent_sta_policy =
QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED;
}
QDF_STATUS mlme_cfg_on_psoc_enable(struct wlan_objmgr_psoc *psoc)
@@ -2488,7 +2490,7 @@ QDF_STATUS mlme_cfg_on_psoc_enable(struct wlan_objmgr_psoc *psoc)
mlme_init_roam_score_config(psoc, mlme_cfg);
mlme_init_ratemask_cfg(psoc, &mlme_cfg->ratemask_cfg);
mlme_init_iot_cfg(psoc, &mlme_cfg->iot);
mlme_init_primary_iface(&mlme_cfg->gen);
mlme_init_dual_sta_config(&mlme_cfg->gen);
return status;
}

查看文件

@@ -244,6 +244,7 @@ QDF_STATUS wlan_mlme_set_dual_sta_policy(struct wlan_objmgr_psoc *psoc,
mlme_obj->cfg.gen.dual_sta_policy.concurrent_sta_policy =
dual_sta_config;
mlme_debug("Set dual_sta_config to :%d", dual_sta_config);
return QDF_STATUS_SUCCESS;
}