RE: [PATCH rtw-next v5 10/10] wifi: rtw89: restore channel when leaving idle on non-chanctx devices
From: Zong-Zhe Yang
Date: Mon Nov 16 2026 - 23:15:08 EST
Enver Ikromov <owner@xxxxxxxxxxxxxx> wrote:
>
> On Mon, Nov 16, 2026 at 03:45:04AM +0000, Ping-Ke Shih wrote:
> > The commit message may just say that fix the channel in monitor
> > doesn't restore after monitor interface down/up.
> > [...]
> > Declare a local variable 'no_chanctx =
> > !rtwdev->ops->assign_vif_chanctx';
Perhaps add a support_chanctx flag in rtwdev.
(You can refer to the support_mlo flag.)
Then:
no_chanctx = !rtwdev->support_chanctx;
> > Move this upward after rtw89_leave_ps_mode(), and update the 'changed'
> >
> > changed |= IEEE80211_CONF_CHANGE_CHANNEL;
> >
> > to share existing code.
>
> Tested your exact snippet on RTL8852AE across cold start and monitor
> down/up on 5 GHz (80 MHz), and RX and TX restore cleanly. I will use this
> approach, shorten the commit message, and place the patch before the feature
> patches in v6 as Zong-Zhe suggested.
>