Linux wireless drivers development
 help / color / mirror / Atom feed
* wifi: rtw88: usb: no TX on 5 GHz after setting up a monitor interface again on the same frequency
@ 2026-12-01 19:50 martin
  2026-12-01 19:56 ` martin
  0 siblings, 1 reply; 5+ messages in thread
From: martin @ 2026-12-01 19:50 UTC (permalink / raw)
  To: pkshih
  Cc: linux-wireless, "Bitterblue Smith rtl8821cerfe2",
	"Luka Gejak luka.gejak"


Hi,

On rtw88 USB adapters, a monitor interface that is set up a second
time on the same 5 GHz frequency, without reloading the driver, stops
transmitting. On the RTL8814AU it also stops receiving.

Setup: Ubuntu 7.0.0-43-generic with its stock rtw88 modules,
RTL8814AU (firmware 33.6.0) and RTL8812AU (firmware 52.14.0) on USB 3,
an MT7921AU as receiver. Injected unicast data frames, 50 per run.

Steps:

   ip link set wlan0 down
   iw dev wlan0 set type monitor
   ip link set wlan0 up
   iw dev wlan0 set freq 5180 80 5210
   # inject: arrives (49 tries per frame at 6 Mbit/s)

   ip link set wlan0 down
   iw dev wlan0 set type monitor
   ip link set wlan0 up
   iw dev wlan0 set freq 5180 80 5210
   # inject: nothing arrives

What I see:
- After the second setup no injected frame reaches the receiver, on
   any 20 MHz channel of that block. The RTL8814AU then also receives
   no beacons; the RTL8812AU keeps receiving.
- The same happens at 20 MHz (5180 set up twice).
- A second setup on a different frequency (5200/80/5210, or 2437)
   transmits normally.
- In the silent state, set freq to another channel and back does not
   bring transmission back. On the RTL8814AU, a detour over 5200
   brings reception back, but not transmission.
- With Ahmet's injection v3 patches the TX reports in the silent state
   look like those of frames that went out (status 0x40, the requested
   rate), so the driver does not notice.
- Restarting Kismet with an RTL8814AU on a fixed 5 GHz channel hits
   this: the first run receives, the second gets nothing until the
   driver is reloaded.

Register dumps of the RTL8814AU (debugfs mac_*/bb_*/rf_dump) after
the first setup, the second setup on the same frequency, and a setup
on 5200 differ in about 50 values that are only different in the
silent state. Among them (first and third setup / silent state):

   0x0cb0, 0x0eb0, 0x18b4  33173317 / 54775477  (RFE pinmux A/B/C)
   0x1ab4                  77177717 / 54775477  (RFE pinmux D)
   0x1abc                  73300000 / 77700000
   0x0454                  ...80 / ...05        (BIT_CHECK_CCK_EN gone)
   0x004c                  c0228282 / 04228282

33173317 is what rtw8814a_set_rfe_reg_5g() writes for rfe_option 1,
which this adapter has; 54775477 is the rfe_option 0 value. And the
band bit in REG_CCK_CHECK, which rtw8814a_set_channel() reads to
decide on switch_band(), says 2.4 GHz. So it looks as if the channel
and band setup is not redone after the power-on when the frequency
stays the same. I haven't traced that through mac80211, and the
RTL8812AU shows the same lack of TX with its own code.

Deleting and re-adding the monitor interface doesn't help; reloading
rtw88_8814au alone or a USB unbind/bind does, until the next setup on
the same frequency.

I haven't tried 2.4 GHz twice on the same channel, nor the RTL8822BU
or RTL8821CU. The full register diffs are available, and I can test
patches on both adapters.

Martin


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-03  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:50 wifi: rtw88: usb: no TX on 5 GHz after setting up a monitor interface again on the same frequency martin
2026-12-01 19:56 ` martin
2026-12-02 14:44   ` Luka Gejak
2026-12-03  7:18     ` martin
2026-12-03  9:31       ` Luka Gejak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox