Re: [PATCH rtw-next v15 2/3] wifi: rtw88: support channel switch in AP mode

From: Luka Gejak

Date: Sat Nov 28 2026 - 07:08:28 EST


Hi Mehmet,

Thanks for the v15. Two comments below.

On November 28, 2026 8:18:57 AM GMT+01:00, Mehmet Fide
<mehmet.fide@xxxxxxxxx> wrote:

> + if (rtwdev->csa.count == 1) {
> + ieee80211_csa_finish(vif, 0);
> + goto out;
> + }

As far as I can see, the AP moves to the new channel without the RF
calibration it gets in rtw_ops_start_ap(). The channel change sets
need_rfk, but rtw_chip_prepare_tx() is only called on the managed
station path. On the RTL8822C the watchdog can then adjust DPK using
the thermal values recorded on the old channel.

Where should we run the AP calibration after the retune?

[ ... ]

> + WIPHY_FLAG_HAS_CHANNEL_SWITCH;

You confirmed on the RTL8822CE that when the station stays on the old
channel, mac80211 accepts the AP switch and then stops the AP at the end
of the countdown. By then the AP has already told its clients to move.
Could pre_channel_switch() reject the request while the station still
needs the old channel?

https://lore.kernel.org/linux-wireless/20261124083130.206249-1-mehmet.fide@xxxxxxxxx/

Best regards,
Luka Gejak