RE: [PATCH rtw-next v4 2/2] wifi: rtw88: support channel switch in AP mode
From: Ping-Ke Shih
Date: Wed Oct 07 2026 - 04:18:01 EST
Mehmet Fide <mehmet.fide@xxxxxxxxx> wrote:
> On 2026-10-07 Ping-Ke Shih wrote:
> > > - rtw_fw_download_rsvd_page(rtwdev);
> > > - rtw_send_rsvd_page_h2c(rtwdev);
> > > + if (!rtw_fw_csa_active(rtwdev)) {
> >
> > Does it actually happen to AP mode?
> >
> > If it could happen, check the condition by conf->csa_active (like below)?
>
> Not for the AP interface: mac80211 raises BSS_CHANGED_ASSOC for a
> station interface only. The hunk is for the STA+AP combination the
> driver registers for the 8822C, and it does happen there: with an AP
> on an RTL8822CU counting down from channel 6 to 11, a station interface
> on the same device that had a fresh scan result associated with an AP
> on channel 11 while the countdown ran, so BSS_CHANGED_ASSOC arrived in
> the middle of it. That download would rebuild the reserved page with a
> fresh beacon. conf belongs to the station there, so conf->csa_active
> would say nothing about the AP; that is why the check is on
> rtwdev->csa_vif.
Got it. Add a comment to point out "STA+AP combination" then.
And, agree with your other reply.
Ping-Ke