mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7996: rework mt7996_mcu_beacon_inband_discov to support MLO
Rework mt7996_mcu_beacon_inband_discov routine in order to support multi-link setup. Co-developed-by: Bo Jiao <[email protected]> Signed-off-by: Bo Jiao <[email protected]> Co-developed-by: Peter Chiu <[email protected]> Signed-off-by: Peter Chiu <[email protected]> Signed-off-by: Shayne Chen <[email protected]> Co-developed-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
56529041b3
commit
c788d5748d
+1
-1
@@ -825,7 +825,7 @@ mt7996_link_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
|
||||
if (changed & (BSS_CHANGED_UNSOL_BCAST_PROBE_RESP |
|
||||
BSS_CHANGED_FILS_DISCOVERY))
|
||||
mt7996_mcu_beacon_inband_discov(dev, vif, changed);
|
||||
mt7996_mcu_beacon_inband_discov(dev, info, link, changed);
|
||||
|
||||
if (changed & BSS_CHANGED_MU_GROUPS)
|
||||
mt7996_update_mu_group(hw, link, info);
|
||||
|
||||
+10
-9
@@ -2717,13 +2717,14 @@ out:
|
||||
}
|
||||
|
||||
int mt7996_mcu_beacon_inband_discov(struct mt7996_dev *dev,
|
||||
struct ieee80211_vif *vif, u32 changed)
|
||||
struct ieee80211_bss_conf *link_conf,
|
||||
struct mt7996_vif_link *link, u32 changed)
|
||||
{
|
||||
#define OFFLOAD_TX_MODE_SU BIT(0)
|
||||
#define OFFLOAD_TX_MODE_MU BIT(1)
|
||||
struct ieee80211_vif *vif = link_conf->vif;
|
||||
struct ieee80211_hw *hw = mt76_hw(dev);
|
||||
struct mt7996_vif *mvif = (struct mt7996_vif *)vif->drv_priv;
|
||||
struct mt7996_phy *phy = mt7996_vif_link_phy(&mvif->deflink);
|
||||
struct mt7996_phy *phy = link->phy;
|
||||
struct mt76_wcid *wcid = &dev->mt76.global_wcid;
|
||||
struct bss_inband_discovery_tlv *discov;
|
||||
struct ieee80211_tx_info *info;
|
||||
@@ -2740,21 +2741,21 @@ int mt7996_mcu_beacon_inband_discov(struct mt7996_dev *dev,
|
||||
chandef = &phy->mt76->chandef;
|
||||
band = chandef->chan->band;
|
||||
|
||||
if (vif->bss_conf.nontransmitted)
|
||||
if (link_conf->nontransmitted)
|
||||
return 0;
|
||||
|
||||
rskb = __mt7996_mcu_alloc_bss_req(&dev->mt76, &mvif->deflink.mt76,
|
||||
rskb = __mt7996_mcu_alloc_bss_req(&dev->mt76, &link->mt76,
|
||||
MT7996_MAX_BSS_OFFLOAD_SIZE);
|
||||
if (IS_ERR(rskb))
|
||||
return PTR_ERR(rskb);
|
||||
|
||||
if (changed & BSS_CHANGED_FILS_DISCOVERY &&
|
||||
vif->bss_conf.fils_discovery.max_interval) {
|
||||
interval = vif->bss_conf.fils_discovery.max_interval;
|
||||
link_conf->fils_discovery.max_interval) {
|
||||
interval = link_conf->fils_discovery.max_interval;
|
||||
skb = ieee80211_get_fils_discovery_tmpl(hw, vif);
|
||||
} else if (changed & BSS_CHANGED_UNSOL_BCAST_PROBE_RESP &&
|
||||
vif->bss_conf.unsol_bcast_probe_resp_interval) {
|
||||
interval = vif->bss_conf.unsol_bcast_probe_resp_interval;
|
||||
link_conf->unsol_bcast_probe_resp_interval) {
|
||||
interval = link_conf->unsol_bcast_probe_resp_interval;
|
||||
skb = ieee80211_get_unsol_bcast_probe_resp_tmpl(hw, vif);
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -594,7 +594,8 @@ int mt7996_mcu_update_bss_color(struct mt7996_dev *dev,
|
||||
int mt7996_mcu_add_beacon(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
struct ieee80211_bss_conf *link_conf);
|
||||
int mt7996_mcu_beacon_inband_discov(struct mt7996_dev *dev,
|
||||
struct ieee80211_vif *vif, u32 changed);
|
||||
struct ieee80211_bss_conf *link_conf,
|
||||
struct mt7996_vif_link *link, u32 changed);
|
||||
int mt7996_mcu_add_obss_spr(struct mt7996_phy *phy,
|
||||
struct mt7996_vif_link *link,
|
||||
struct ieee80211_he_obss_pd *he_obss_pd);
|
||||
|
||||
Reference in New Issue
Block a user