Commit 098428c4 authored by Shayne Chen's avatar Shayne Chen Committed by Felix Fietkau

wifi: mt76: connac: set correct muar_idx for mt799x chipsets

The MUAR (multicast unicast address) is an address mapping table that
participates in the process of searching WTBL entries. For mt799x
chipsets, the default muar index of BMC WTBL is 0xe.
Signed-off-by: default avatarShayne Chen <shayne.chen@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 3687854d
...@@ -227,6 +227,11 @@ static inline bool is_mt7992(struct mt76_dev *dev) ...@@ -227,6 +227,11 @@ static inline bool is_mt7992(struct mt76_dev *dev)
return mt76_chip(dev) == 0x7992; return mt76_chip(dev) == 0x7992;
} }
static inline bool is_mt799x(struct mt76_dev *dev)
{
return is_mt7996(dev) || is_mt7992(dev);
}
static inline bool is_mt7622(struct mt76_dev *dev) static inline bool is_mt7622(struct mt76_dev *dev)
{ {
if (!IS_ENABLED(CONFIG_MT7622_WMAC)) if (!IS_ENABLED(CONFIG_MT7622_WMAC))
......
...@@ -283,6 +283,9 @@ __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif, ...@@ -283,6 +283,9 @@ __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif *mvif,
}; };
struct sk_buff *skb; struct sk_buff *skb;
if (is_mt799x(dev) && !wcid->sta)
hdr.muar_idx = 0xe;
mt76_connac_mcu_get_wlan_idx(dev, wcid, &hdr.wlan_idx_lo, mt76_connac_mcu_get_wlan_idx(dev, wcid, &hdr.wlan_idx_lo,
&hdr.wlan_idx_hi); &hdr.wlan_idx_hi);
skb = mt76_mcu_msg_alloc(dev, NULL, len); skb = mt76_mcu_msg_alloc(dev, NULL, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment