Re: [PATCH RFT rtw-next v2 0/2] wifi: rtw88: honour rate, retries and bandwidth of injected frames
From: martin
Date: Mon Nov 30 2026 - 14:41:53 EST
Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote:
I think so. Don't these work?
DESC_RATEVHT1SS_MCS8 = 0x34,
DESC_RATEVHT1SS_MCS9 = 0x35,
DESC_RATEVHT2SS_MCS8 = 0x3e,
DESC_RATEVHT2SS_MCS9 = 0x3f,
By the way, you can try 'fix_rate' entry in debugfs to check if it works.
Thanks. I tried fix_rate on the RTL8812AU (rtw88_8812au, firmware
52.14.0, Ubuntu 7.0.0-43) as a station on a VHT80 AP on channel 36,
TCP upload, with an RTL8814AU sniffer and the AP's rx bitrate:
- 0x33 (1SS MCS7) and 0x34 (1SS MCS8) go out as requested; the sniffer
and the AP see MCS7 and MCS8 NSS1 at 80 MHz, but most frames carry
the retry bit and throughput is low (7 and 47 Mbit/s).
- 0x35 (1SS MCS9) puts nothing on the air. In one run the adapter
dropped off USB ("read/write register 0x4c failed with -71",
disconnect and re-enumeration). In another, "firmware failed to
leave lps state" came about 10 s later, then -110 on register
accesses of several USB devices on the host, which needed a reboot.
- 0x3d, 0x3e and 0x3f (2SS MCS7, 8 and 9) put no data frames on the
air, not even 2SS MCS7. The link stays up and recovers as soon as
fix_rate is set back to 255.
So 0x34 works with fix_rate, 0x35 and the 2SS rates don't on this
chip. With fix_rate the frames keep the station's VHT rate ID. The
injection patches don't set a rate ID, and there an injected VHT MCS8
frame never reached the air, so the rate ID may matter there, as Ahmet
asked.
Without fix_rate, rate adaptation mostly stays at MCS3-7 NSS1. In one
run after these tests it reached MCS8 NSS1 and a few MCS9 NSS1 frames,
which we had not seen before; I measured that only once.
Martin