mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH rtw-next v2] wifi: rtw88: restore channel when leaving idle in monitor mode
@ 2026-12-03  8:46 Martin
  2026-12-03  8:56 ` Ping-Ke Shih
  2026-12-03  9:43 ` Luka Gejak
  0 siblings, 2 replies; 4+ messages in thread
From: Martin @ 2026-12-03  8:46 UTC (permalink / raw)
  To: Ping-Ke Shih
  Cc: linux-wireless, Luka Gejak, Bitterblue Smith, linux-kernel, Martin

After a monitor interface is set up a second time on the same channel
(down, monitor, up, same frequency), the chip no longer works on that
channel. On 5 GHz the RTL8814AU neither receives nor transmits, and
the RTL8812AU does not transmit. Setting up the interface on a
different channel works.

Tested with RTL8814AU and RTL8812AU (USB).

Closes: https://lore.kernel.org/linux-wireless/20261201205032.Horde.Z7ChCCtVnG0Kme7KFHo6v7B@mail.your-server.de/
Suggested-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Martin <martin@rfdeck.de>
---
v2:
- Shorten the commit message and name the tested adapters (Ping-Ke)
- Drop the code comment (Ping-Ke)

v1: https://lore.kernel.org/linux-wireless/20261203080413.37311-1-martin@rfdeck.de/

Same check as in rtw89 commit e07c9af7bbc8 ("wifi: rtw89: restore
channel when leaving idle on non-chanctx devices").

AI tool use (Documentation/process/generated-content.rst): the
analysis, the patch and the changelog were written with help from
Claude Code, from the register dumps and mac80211 traces of my tests
and the discussion on the list. I reviewed and tested the change.

 drivers/net/wireless/realtek/rtw88/mac80211.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c b/drivers/net/wireless/realtek/rtw88/mac80211.c
index b14d7fffb98..0e4970d6595 100644
--- a/drivers/net/wireless/realtek/rtw88/mac80211.c
+++ b/drivers/net/wireless/realtek/rtw88/mac80211.c
@@ -86,6 +86,12 @@ static int rtw_ops_config(struct ieee80211_hw *hw, int radio_idx, u32 changed)
 
 	rtw_leave_lps_deep(rtwdev);
 
+	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;
+
 	if ((changed & IEEE80211_CONF_CHANGE_IDLE) &&
 	    !(hw->conf.flags & IEEE80211_CONF_IDLE)) {
 		ret = rtw_leave_ips(rtwdev);
-- 
2.43.0


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

* RE: [PATCH rtw-next v2] wifi: rtw88: restore channel when leaving idle in monitor mode
  2026-12-03  8:46 [PATCH rtw-next v2] wifi: rtw88: restore channel when leaving idle in monitor mode Martin
@ 2026-12-03  8:56 ` Ping-Ke Shih
  2026-12-03 10:24   ` martin
  2026-12-03  9:43 ` Luka Gejak
  1 sibling, 1 reply; 4+ messages in thread
From: Ping-Ke Shih @ 2026-12-03  8:56 UTC (permalink / raw)
  To: Martin; +Cc: linux-wireless, Luka Gejak, Bitterblue Smith, linux-kernel

Martin <martin@rfdeck.de> wrote:
> After a monitor interface is set up a second time on the same channel
> (down, monitor, up, same frequency), the chip no longer works on that
> channel. On 5 GHz the RTL8814AU neither receives nor transmits, and
> the RTL8812AU does not transmit. Setting up the interface on a
> different channel works.
> 
> Tested with RTL8814AU and RTL8812AU (USB).
> 
> Closes:
> https://lore.kernel.org/linux-wireless/20261201205032.Horde.Z7ChCCtVnG0Kme7KFHo6v7B@mail.your-serv
> er.de/
> Suggested-by: Ping-Ke Shih <pkshih@realtek.com>
> Signed-off-by: Martin <martin@rfdeck.de>

Please use your full name. I can edit it during committing if you can share.

Acked-by: Ping-Ke Shih <pkshih@realtek.com>




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

* Re: [PATCH rtw-next v2] wifi: rtw88: restore channel when leaving idle in monitor mode
  2026-12-03  8:46 [PATCH rtw-next v2] wifi: rtw88: restore channel when leaving idle in monitor mode Martin
  2026-12-03  8:56 ` Ping-Ke Shih
@ 2026-12-03  9:43 ` Luka Gejak
  1 sibling, 0 replies; 4+ messages in thread
From: Luka Gejak @ 2026-12-03  9:43 UTC (permalink / raw)
  To: Martin, Ping-Ke Shih; +Cc: linux-wireless, Bitterblue Smith, linux-kernel

On December 3, 2026 9:46:44 AM GMT+01:00, Martin <martin@rfdeck.de> wrote:
>After a monitor interface is set up a second time on the same channel
>(down, monitor, up, same frequency), the chip no longer works on that
>channel. On 5 GHz the RTL8814AU neither receives nor transmits, and
>the RTL8812AU does not transmit. Setting up the interface on a
>different channel works.
>
>Tested with RTL8814AU and RTL8812AU (USB).
>
>Closes: https://lore.kernel.org/linux-wireless/20261201205032.Horde.Z7ChCCtVnG0Kme7KFHo6v7B@mail.your-server.de/
>Suggested-by: Ping-Ke Shih <pkshih@realtek.com>
>Signed-off-by: Martin <martin@rfdeck.de>
>---

With the corrected SOB line,

Reviewed-by: Luka Gejak <luka.gejak@linux.dev>

Best regards,
Luka Gejak

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

* Re: [PATCH rtw-next v2] wifi: rtw88: restore channel when leaving idle in monitor mode
  2026-12-03  8:56 ` Ping-Ke Shih
@ 2026-12-03 10:24   ` martin
  0 siblings, 0 replies; 4+ messages in thread
From: martin @ 2026-12-03 10:24 UTC (permalink / raw)
  To: Ping-Ke Shih; +Cc: linux-wireless, Luka Gejak, Bitterblue Smith, linux-kernel

Ping-Ke Shih <pkshih@realtek.com> wrote:
> Please use your full name. I can edit it during committing if you can
> share.

Sorry about that. Please use

Signed-off-by: Martin Roessler <martin@rfdeck.de>

and the same name for the author. Thanks for the ack, and thanks Luka
for the review.

Martin


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-03  8:46 [PATCH rtw-next v2] wifi: rtw88: restore channel when leaving idle in monitor mode Martin
2026-12-03  8:56 ` Ping-Ke Shih
2026-12-03 10:24   ` martin
2026-12-03  9:43 ` Luka Gejak

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

all inboxes | Powered by JetHome®