qcacld-3.0: Disallow MCC for STA_POLICY_UNBIASED

Even primary interface is configured, if dual STA policy is
STA_POLICY_UNBIASED, MCC is disallowed for both roaming and connect.

Change-Id: I6e26fdcdc930eb116771abfe310811c6534be09f
CRs-Fixed: 3396425
This commit is contained in:
Jianmin Zhu
2023-02-07 21:09:34 +08:00
committed by Madan Koyyalamudi
부모 202416dffe
커밋 1eb2511a22
3개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제

파일 보기

@@ -278,7 +278,9 @@ bool wlan_cm_same_band_sta_allowed(struct wlan_objmgr_psoc *psoc)
return true;
dual_sta_policy = &mlme_obj->cfg.gen.dual_sta_policy;
if (dual_sta_policy->primary_vdev_id != WLAN_UMAC_VDEV_ID_MAX)
if (dual_sta_policy->primary_vdev_id != WLAN_UMAC_VDEV_ID_MAX &&
dual_sta_policy->concurrent_sta_policy ==
QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY)
return true;
return false;
@@ -496,7 +498,7 @@ wlan_cm_dual_sta_roam_update_connect_channels(struct wlan_objmgr_psoc *psoc,
* environment, so that user can switch to second
* connection and mark it as primary.
*/
if (dual_sta_policy->primary_vdev_id != WLAN_UMAC_VDEV_ID_MAX)
if (wlan_mlme_is_primary_interface_configured(psoc))
return;
/*