qcacld-3.0: add concurrency checking for MLO STA

Update the concurrency policy for STA mode.
For an upcoming STA connection:
1. Disallow the 2nd STA connection if multiple STA connections are
   not allowed.
2. Allow the secondary MLO link when primary link is connected.
3. Disallow ML STA when ML STA/SAP is present.
4. Disallow the 3rd STA.
5. Allow for the other cases.

Change-Id: I70c41177b7a3a9aa9cbac0aaced08c6eafca2b6d
CRs-Fixed: 3012577
This commit is contained in:
Yu Wang
2021-10-12 16:33:42 +08:00
committad av Madan Koyyalamudi
förälder 672893071f
incheckning b4e1e2b18a
12 ändrade filer med 285 tillägg och 45 borttagningar

Visa fil

@@ -1114,7 +1114,8 @@ bool nan_is_enable_allowed(struct wlan_objmgr_psoc *psoc, uint32_t nan_ch_freq)
return (NAN_DISC_DISABLED == nan_get_discovery_state(psoc) &&
ucfg_is_nan_conc_control_supported(psoc) &&
policy_mgr_allow_concurrency(psoc, PM_NAN_DISC_MODE,
nan_ch_freq, HW_MODE_20_MHZ));
nan_ch_freq, HW_MODE_20_MHZ,
0));
}
bool nan_is_disc_active(struct wlan_objmgr_psoc *psoc)