Re: [PATCH RFT rtw-next v3 2/2] wifi: rtw88: honour the retry count and NO_ACK of injected frames
From: martin
Date: Thu Dec 03 2026 - 02:17:19 EST
Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote:
Will it be similar to no chanctx case of rtw89 commit below?
e07c9af7bbc8 ("wifi: rtw89: restore channel when leaving idle on non-chanctx devices")
Yes, it is the same problem, and the same fix works for rtw88. After
the second drv_start, the first drv_config has a mask of 0xffffff9d:
IDLE (0x100) and MONITOR (0x08) are set, CHANNEL (0x40) is not. With
the rtw89 check added to rtw_ops_config() (stock mac80211, Ubuntu
7.0.0-43):
if (changed & IEEE80211_CONF_CHANGE_IDLE &&
changed & IEEE80211_CONF_CHANGE_MONITOR &&
!(hw->conf.flags & IEEE80211_CONF_IDLE) &&
hw->conf.flags & IEEE80211_CONF_MONITOR)
changed |= IEEE80211_CONF_CHANGE_CHANNEL;
the second setup on the same frequency works on both adapters:
- The RTL8814AU receives about 1160 beacons in 30 s, the same as on
the first setup (0 without the change).
- Both the RTL8814AU and the RTL8812AU inject 50 of 50 frames again.
- The RFE pinmux and REG_CCK_CHECK values match the first setup.
It also covers the other ways to set up the interface a second time:
- deleting and re-adding the monitor interface;
- down/up without changing the interface type;
- restarting Kismet, which re-creates its monitor interface.
Luka's mac80211 change (CHANGE_CHANNEL at the end of the
emulate_chanctx block in ieee80211_hw_conf_init()) fixes it too, with
stock rtw88. I will send those results in the report thread.
So there are three working options: rtw_set_channel() in
rtw_ops_start(), the rtw89-style check in rtw_ops_config(), or the
mac80211 change. Which one would you prefer? If it is one of the rtw88
ones, I can send a proper patch.
Martin