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
parent 202416dffe
commit 1eb2511a22
3 changed files with 6 additions and 8 deletions

View File

@@ -2854,11 +2854,7 @@ QDF_STATUS wlan_mlme_set_primary_interface(struct wlan_objmgr_psoc *psoc,
bool wlan_mlme_is_primary_interface_configured(struct wlan_objmgr_psoc *psoc)
{
uint8_t dual_sta_config = 0xFF;
wlan_mlme_get_dual_sta_policy(psoc, &dual_sta_config);
return (dual_sta_config ==
QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY);
return wlan_cm_same_band_sta_allowed(psoc);
}
QDF_STATUS wlan_mlme_peer_get_assoc_rsp_ies(struct wlan_objmgr_peer *peer,