Wi-Fi Alliance Certificate WFA129313 (RTL8922AE 802.11be and Bluetooth combo module, 2024-05-23, FW 6102.24.109.0) certifies both "Advertised TID-to-link mapping" and "Multi-link reconfiguration (AP removal/restart)" as Wi-Fi 7 features for this chip. The driver currently sets mld_capa_and_ops = 0, so the STA negotiates neither capability with the AP. Use FIELD_PREP_CONST() (already used elsewhere in this driver, see usb.c:784-787) to set IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_SAME in the TID-to-link-map-neg-supp field, plus IEEE80211_MLD_CAP_OP_LINK_RECONF_SUPPORT. This matches the value used by iwlwifi for its Wi-Fi 7 STA mode (see drivers/net/wireless/intel/iwlwifi/ mld/mac80211.c IWL_MLD_CAPA_OPS macro and mvm/mac80211.c IWL_MVM_MLD_CAPA_OPS macro), which is the established in-tree precedent for this exact bit pattern on a Wi-Fi 7 STA. The IEEE80211_MLD_CAP_OP_MAX_SIMUL_LINKS field is left at 0 (= 1 max simultaneous link, matching the EMLSR-only operating mode the driver implements per enum rtw89_mlo_mode {MLSR, EMLSR}). These two capabilities are orthogonal to MLO operating mode (EMLSR remains the negotiated mode per the previous patch in this series); they let the AP perform online TID-to-link reassignments and remove or restart links without a full assoc cycle on the STA side. Tested on RTL8922AU (USB variant, same MAC + RF as cert'd PCIe AE) against TP-Link Deco BE63 mesh; assoc remains stable, no regression in EMLSR multi-link assoc behavior, all 11 wifi-health-check probes pass. Link: https://api.cert.wi-fi.org/api/certificate/download/public?variantId=129706 [WFA cert WFA129313] Signed-off-by: Louis Kotze --- drivers/net/wireless/realtek/rtw89/core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c index 986deb2c1384..aedb2a284cd4 100644 --- a/drivers/net/wireless/realtek/rtw89/core.c +++ b/drivers/net/wireless/realtek/rtw89/core.c @@ -221,7 +221,10 @@ static const struct wiphy_iftype_ext_capab rtw89_iftypes_ext_capa[] = { IEEE80211_EML_CAP_EMLSR_SUPP | (IEEE80211_EML_CAP_EML_PADDING_DELAY_256US << 1) | (IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY_32US << 4), - .mld_capa_and_ops = 0, + .mld_capa_and_ops = + FIELD_PREP_CONST(IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP, + IEEE80211_MLD_CAP_OP_TID_TO_LINK_MAP_NEG_SUPP_SAME) | + IEEE80211_MLD_CAP_OP_LINK_RECONF_SUPPORT, }, }; -- 2.54.0