mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: add link handling in the mt7925_ipv6_addr_change
add link handling in the mt7925_ipv6_addr_change Co-developed-by: Ming Yen Hsieh <[email protected]> Signed-off-by: Ming Yen Hsieh <[email protected]> Co-developed-by: Deren Wu <[email protected]> Signed-off-by: Deren Wu <[email protected]> Signed-off-by: Sean Wang <[email protected]> Link: https://patch.msgid.link/ed429b1896cc10c8db25dc2ade3e59bec78d7131.1720248331.git.sean.wang@kernel.org Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+23
-6
@@ -1490,12 +1490,12 @@ static void mt7925_sta_set_decap_offload(struct ieee80211_hw *hw,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_IPV6)
|
#if IS_ENABLED(CONFIG_IPV6)
|
||||||
static void mt7925_ipv6_addr_change(struct ieee80211_hw *hw,
|
static void __mt7925_ipv6_addr_change(struct ieee80211_hw *hw,
|
||||||
struct ieee80211_vif *vif,
|
struct ieee80211_bss_conf *link_conf,
|
||||||
struct inet6_dev *idev)
|
struct inet6_dev *idev)
|
||||||
{
|
{
|
||||||
struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;
|
struct mt792x_bss_conf *mconf = mt792x_link_conf_to_mconf(link_conf);
|
||||||
struct mt792x_dev *dev = mvif->phy->dev;
|
struct mt792x_dev *dev = mt792x_hw_dev(hw);
|
||||||
struct inet6_ifaddr *ifa;
|
struct inet6_ifaddr *ifa;
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
u8 idx = 0;
|
u8 idx = 0;
|
||||||
@@ -1509,7 +1509,7 @@ static void mt7925_ipv6_addr_change(struct ieee80211_hw *hw,
|
|||||||
struct in6_addr ns_addrs[IEEE80211_BSS_ARP_ADDR_LIST_LEN];
|
struct in6_addr ns_addrs[IEEE80211_BSS_ARP_ADDR_LIST_LEN];
|
||||||
} req_hdr = {
|
} req_hdr = {
|
||||||
.hdr = {
|
.hdr = {
|
||||||
.bss_idx = mvif->bss_conf.mt76.idx,
|
.bss_idx = mconf->mt76.idx,
|
||||||
},
|
},
|
||||||
.arpns = {
|
.arpns = {
|
||||||
.tag = cpu_to_le16(UNI_OFFLOAD_OFFLOAD_ND),
|
.tag = cpu_to_le16(UNI_OFFLOAD_OFFLOAD_ND),
|
||||||
@@ -1544,6 +1544,23 @@ static void mt7925_ipv6_addr_change(struct ieee80211_hw *hw,
|
|||||||
|
|
||||||
ieee80211_queue_work(dev->mt76.hw, &dev->ipv6_ns_work);
|
ieee80211_queue_work(dev->mt76.hw, &dev->ipv6_ns_work);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void mt7925_ipv6_addr_change(struct ieee80211_hw *hw,
|
||||||
|
struct ieee80211_vif *vif,
|
||||||
|
struct inet6_dev *idev)
|
||||||
|
{
|
||||||
|
struct mt792x_vif *mvif = (struct mt792x_vif *)vif->drv_priv;
|
||||||
|
unsigned long valid = ieee80211_vif_is_mld(vif) ?
|
||||||
|
mvif->valid_links : BIT(0);
|
||||||
|
struct ieee80211_bss_conf *bss_conf;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for_each_set_bit(i, &valid, IEEE80211_MLD_MAX_NUM_LINKS) {
|
||||||
|
bss_conf = mt792x_vif_to_bss_conf(vif, i);
|
||||||
|
__mt7925_ipv6_addr_change(hw, bss_conf, idev);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int mt7925_set_tx_sar_pwr(struct ieee80211_hw *hw,
|
int mt7925_set_tx_sar_pwr(struct ieee80211_hw *hw,
|
||||||
|
|||||||
Reference in New Issue
Block a user