From c4e3deaa5883de45c44ec09500773a6d3c56c88d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 1 Jul 2017 16:47:44 +0200 Subject: [PATCH] mt7603: use the real vif index in txwi header for normal tx. Fixes rate control for multi-vif. Beacons and buffered multicast packets still need the adjusted index Signed-off-by: Felix Fietkau --- mt7603_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mt7603_mac.c b/mt7603_mac.c index 5c8fd145..a10a8038 100644 --- a/mt7603_mac.c +++ b/mt7603_mac.c @@ -649,7 +649,7 @@ mt7603_mac_write_txwi(struct mt7603_dev *dev, __le32 *txwi, if (vif) { mvif = (struct mt7603_vif *) vif->drv_priv; vif_idx = mvif->idx; - if (vif_idx) + if (vif_idx && q >= &dev->mt76.q_tx[MT_TXQ_BEACON]) vif_idx += 0x10; }