Re: [PATCH rtw-next v11 2/3] wifi: rtw88: support channel switch in AP mode
From: Mehmet Fide
Date: Mon Nov 16 2026 - 16:49:18 EST
Hi Luka,
All three are right, thanks.
> Could a failed download keep that count pending for a retry before
> allowing completion?
Yes. v12 downloads the same count again at the next step and calls
ieee80211_csa_finish() only after the count of 1 reached the firmware.
With the first download of a countdown failed on purpose and a count of
2, v11 switched with no CSA beacon on the air in 5 of 5 tries. v12 sent
every count in 30 of 30 with counts 2 and 5 on an RTL8821CU, an
RTL8822BU and an RTL8822CE.
> Maybe the refresh should not depend on csa_vif still being set?
v12 refreshes the page in rtw_ops_stop_ap() whenever a station interface
stays, and the work no longer clears csa_vif, only the driver ops do.
> Could the AP be found without allocating an entry?
v12 keeps the interface of the countdown in rtw_ops_suspend() and starts
it again in rtw_ops_resume(), without iterating.
Mehmet