qcacld-3.0: Associate in 11ax mode on non MLO vdev

In 11be capable configuration, for connection attempt
to MLO AP from non-MLO type vdev, downgrade to 11ax
mode association for that vdev.

User can still connect in ML mode from MLO type vdev.

Change-Id: I1e7cf940a778a20f2f4d5d24283ffb6aae52781b
CRs-Fixed: 3312163
This commit is contained in:
Vinod Kumar Pirla
2022-10-14 02:57:28 -07:00
committed by Madan Koyyalamudi
parent 14e95a4c57
commit c682062e13
10 changed files with 142 additions and 67 deletions

View File

@@ -736,6 +736,16 @@ static inline uint32_t
if_mgr_get_conc_ext_flags(struct wlan_objmgr_vdev *vdev,
struct validate_bss_data *candidate_info)
{
struct qdf_mac_addr *mld_addr;
/* If connection is happening on non-ML VDEV
* force the ML AP candidate as non-MLO to
* downgrade connection to 11ax.
*/
mld_addr = (struct qdf_mac_addr *)wlan_vdev_mlme_get_mldaddr(vdev);
if (qdf_is_macaddr_zero(mld_addr))
return policy_mgr_get_conc_ext_flags(vdev, false);
return policy_mgr_get_conc_ext_flags(vdev, candidate_info->is_mlo);
}