[PATCH] wifi: mt76: connac: honour injected HT/VHT rate and bandwidth

Devin Wittmayer lucid_duck at justthetip.ca
Tue Nov 3 07:29:54 PST 2026


On Sun, Nov 01, 2026 at 03:27:27PM -0500, Aaron Beckendorf wrote:
> This makes 20/40/80 MHz HT/VHT injection work on mt7921u/mt7925u.

mt7925 builds its own TX descriptor, so this never runs there. An
MT7925U injects at 6 Mbit/s with or without the patch.

> +				mcs = tr->idx & 0x7;
> +				nss = tr->idx >> 3;

The rate field wants the whole HT MCS index here, which is what mt7615
passes, so the mask loses the second stream. With the whole index each
HT and VHT rate below goes out as asked. MT7921AU injecting, MT7922
capturing, 100 frames per case:

  requested                 as posted       without the mask
  HT MCS 0 (20), 7 (20/40)  as requested    as requested
  HT MCS 8 (20)             HT MCS 0        HT MCS 8
  HT MCS 15 (20/40)         HT MCS 7        HT MCS 15
  VHT MCS 0 (80), 9 (40/80) as requested    as requested
  VHT MCS 7 x 2 (80)        as requested    as requested

Thanks for this. Without it every injected frame goes out at 6 Mbit/s
on these cards. I'll run v2 through the same test.

Devin



More information about the Linux-mediatek mailing list