mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: mt7915: rely on mt76_connac_mcu_wtbl_generic_tlv
Rely on mt76_connac_mcu_wtbl_generic_tlv routine in mt7915 and remove duplicated code. Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
e3ae182806
commit
d9e9989eca
+2
-2
@@ -530,7 +530,7 @@ void mt76_connac_mcu_wtbl_generic_tlv(struct mt76_dev *dev,
|
||||
generic->muar_idx = mvif->omac_idx;
|
||||
generic->qos = sta->wme;
|
||||
} else {
|
||||
if (is_mt7921(dev) &&
|
||||
if ((is_mt7921(dev) || is_mt7915(dev)) &&
|
||||
vif->type == NL80211_IFTYPE_STATION)
|
||||
memcpy(generic->peer_addr, vif->bss_conf.bssid,
|
||||
ETH_ALEN);
|
||||
@@ -548,7 +548,7 @@ void mt76_connac_mcu_wtbl_generic_tlv(struct mt76_dev *dev,
|
||||
rx->rca2 = 1;
|
||||
rx->rv = 1;
|
||||
|
||||
if (is_mt7921(dev))
|
||||
if (is_mt7921(dev) || is_mt7915(dev))
|
||||
return;
|
||||
|
||||
tlv = mt76_connac_mcu_add_nested_tlv(skb, WTBL_SPE, sizeof(*spe),
|
||||
|
||||
Reference in New Issue
Block a user