Re: [PATCH rtw-next v15 2/3] wifi: rtw88: support channel switch in AP mode
From: Mehmet Fide
Date: Mon Nov 30 2026 - 06:15:06 EST
Hi Luka,
> Where should we run the AP calibration after the retune?
In rtw_ops_config(), after rtw_set_channel(), while the switch is
active. v16 adds a chip op for it that runs the IQK only, on the chips
whose firmware runs the IQK: RTL8822B, RTL8821C and RTL8822C. On an
RTL8822BU and an RTL8821CU the IQK results after a switch were still
those of the old channel.
The full calibration is too slow for a switch on the RTL8822C: with
GAPK and DPK it took about 190 ms on an RTL8822CE and up to 1.7 s on
an RTL8822CU, and the AP sent no beacon meanwhile. The IQK alone took
a median of 20 to 28 ms on all four and did not lengthen the switch.
The DPK of the RTL8822C stays that of the old channel, as on rtw89,
and its tracking goes on.
> Could pre_channel_switch() reject the request while the station still
> needs the old channel?
Yes, v16 will reject the switch with -EBUSY while a second interface
is up, before anything is announced.
Mehmet