Linux wireless drivers development
 help / color / mirror / Atom feed
* wifi: rtw88: usb: AP sends no beacons after monitor capture on the same phy
@ 2026-11-24 13:44 martin
  2026-11-25 22:32 ` Luka Gejak
  0 siblings, 1 reply; 5+ messages in thread
From: martin @ 2026-11-24 13:44 UTC (permalink / raw)
  To: Ping-Ke Shih; +Cc: linux-wireless, martin

Hi,

on rtw88 USB adapters, an AP started on a phy that had a monitor-mode
capture session before sometimes never transmits a beacon, although
hostapd reports AP-ENABLED. Neither the driver nor the firmware logs an
error. Only reloading the chip module recovers.

Hardware/software:
- rtw88_8812au (fw 52.14.0); also seen with rtw88_8814au (fw 33.6.0)
   and rtw88_8821cu (fw 24.11.0)
- Ubuntu 24.04, kernel 7.0.0-43-generic, hostapd 2.10, regdomain DE
- same behaviour with a v7.4-rc4 mainline build (Ubuntu mainline
   7.4.0-070400rc4) and the same firmware

Test: module freshly loaded, hostapd for 12 s on channel 6 (about 110
beacons expected), beacons counted by a separate mt7921u monitor on
channel 6.

Sequence that triggers it reliably: a capture session with Kismet
(monitor vif added on the phy, base interface down, channel hopping
including HT40 and 80 MHz, 15 s, then Kismet exits and leaves the
monitor vif in place), hostapd on the base interface (116 beacons),
a second capture session, hostapd again: 0 beacons. 12 of 12 runs on
7.0 and 7.4-rc4. AP -> capture -> AP was silent in 1 of 6 runs.

On 7.4-rc4, with the capture source closed while hostapd runs (20 s)
and reopened in between, three APs in a row sent 230, 0 and 0 beacons.

With iw only it is sporadic:
- monitor vif deleted afterwards (20/40/80 MHz, with and without a
   packet socket, several orders): 0 of 9 silent
- monitor vif left in place like above (add, base down, vif up, tcpdump,
   HT40/80 hopping for 10 s, vif down, reused the next time): 1 of 3
   silent on 7.0; on 7.4-rc4 one of two pairs had a silent AP

With rtw88_core debug_mask=0x80020018 the logs of a working AP
(116 beacons) and a silent one (0 beacons) look the same: start vif
mac_id 0 on port 0, the same reserved pages, the same H2C/C2H sequence,
stop vif. No "error beacon valid", no "failed to download drv rsvd
page", no "failed to get tx report".

Not the cause: HT config (ieee80211n=1 or not), changing the MAC
address before hostapd, waiting 5 or 15 s after the capture.

Recovery: ip link set down/up and "iw dev ... set type managed" do not
help; modprobe -r / modprobe of the chip module does.

mt7921u is not affected by the same sequence. airbase-ng (injection,
no AP mode) on the same rtw88 adapters keeps working.

I can rerun the test with other debug flags, another kernel or a patch.

Thanks,
Martin


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

end of thread, other threads:[~2026-11-26 15:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 13:44 wifi: rtw88: usb: AP sends no beacons after monitor capture on the same phy martin
2026-11-25 22:32 ` Luka Gejak
2026-11-26  7:12   ` martin
2026-11-26  7:59     ` Luka Gejak
2026-11-26 15:18       ` martin

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