mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt792x: extend mt76_connac_mcu_uni_add_dev for per-link BSS
Extend mt76_connac_mcu_uni_add_dev with per-link BSS configuration. The patch we created is a prerequisite to enable the MLO function in the driver. It is purely a refactoring patch so the functionality should remain unchanged. We also extend link_idx field in mt76_connac_bss_basic_tlv for the firmware to able to identify the link index in the MLO mode that is not harmful for the current non-MLO mode. Signed-off-by: Sean Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-1
@@ -646,7 +646,8 @@ mt7921_vif_connect_iter(void *priv, u8 *mac,
|
||||
if (vif->type == NL80211_IFTYPE_STATION)
|
||||
ieee80211_disconnect(vif, true);
|
||||
|
||||
mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.deflink.wcid, true);
|
||||
mt76_connac_mcu_uni_add_dev(&dev->mphy, &vif->bss_conf,
|
||||
&mvif->sta.deflink.wcid, true);
|
||||
mt7921_mcu_set_tx(dev, vif);
|
||||
|
||||
if (vif->type == NL80211_IFTYPE_AP) {
|
||||
|
||||
+2
-2
@@ -306,8 +306,8 @@ mt7921_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
|
||||
mvif->bss_conf.mt76.band_idx = 0;
|
||||
mvif->bss_conf.mt76.wmm_idx = mvif->bss_conf.mt76.idx % MT76_CONNAC_MAX_WMM_SETS;
|
||||
|
||||
ret = mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.deflink.wcid,
|
||||
true);
|
||||
ret = mt76_connac_mcu_uni_add_dev(&dev->mphy, &vif->bss_conf,
|
||||
&mvif->sta.deflink.wcid, true);
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user