Skip to content

Commit

Permalink
mt7603: use the real vif index in txwi header for normal tx.
Browse files Browse the repository at this point in the history
Fixes rate control for multi-vif. Beacons and buffered multicast packets
still need the adjusted index

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jul 1, 2017
1 parent 32eab50 commit c4e3dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt7603_mac.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit c4e3dea

Please sign in to comment.