summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorShayne Chen <shayne.chen@mediatek.com>2022-03-11 22:44:25 +0800
committerFelix Fietkau <nbd@nbd.name>2022-03-16 17:40:22 +0100
commit70493b8692495adc5735f498db4f7fe71be24b3c (patch)
tree9e2230ba9368c501b76784c0c776e41011e99dff /drivers/net
parent6450b1335f5101f0700fdc67593d355588ebc312 (diff)
downloadlinux-stable-70493b8692495adc5735f498db4f7fe71be24b3c.tar.gz
linux-stable-70493b8692495adc5735f498db4f7fe71be24b3c.tar.bz2
linux-stable-70493b8692495adc5735f498db4f7fe71be24b3c.zip
mt76: mt7915: set band1 TGID field in tx descriptor
Set proper group index of tx descriptor for band1. Signed-off-by: Shayne Chen <shayne.chen@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7915/mac.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
index 44866d4dab97..fdfdded9613d 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c
@@ -1218,8 +1218,7 @@ void mt7915_mac_write_txwi(struct mt7915_dev *dev, __le32 *txwi,
FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) |
FIELD_PREP(MT_TXD1_OWN_MAC, omac_idx);
- if ((ext_phy || band_idx) &&
- q_idx >= MT_LMAC_ALTX0 && q_idx <= MT_LMAC_BCN0)
+ if (ext_phy || band_idx)
val |= MT_TXD1_TGID;
txwi[1] = cpu_to_le32(val);