From: Luka Gejak <luka.gejak@linux.dev>
To: Mehmet Fide <mehmet.fide@gmail.com>
Cc: Ping-Ke Shih <pkshih@realtek.com>,
Bitterblue Smith <rtl8821cerfe2@gmail.com>,
linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
mehmet.fide@screeningeagle.com
Subject: Re: [PATCH rtw-next v16 2/3] wifi: rtw88: support channel switch in AP mode
Date: Tue, 1 Dec 2026 17:53:31 +0100 [thread overview]
Message-ID: <179614397914.541347.2058941307456321622@linux.dev> (raw)
In-Reply-To: <20261201080842.1733777-3-mehmet.fide@gmail.com>
Hi Mehmet,
Thanks for the v16. I think the calibration still needs two changes.
On December 1, 2026 9:08:40 AM GMT+01:00, Mehmet Fide
<mehmet.fide@gmail.com> wrote:
> diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c b/drivers/net/wireless/realtek/rtw88/mac80211.c
[ ... ]
> - if (changed & IEEE80211_CONF_CHANGE_CHANNEL)
> + if (changed & IEEE80211_CONF_CHANGE_CHANNEL) {
> rtw_set_channel(rtwdev);
> + if (rtw_fw_csa_active(rtwdev) && chip->ops->switch_calibration)
> + chip->ops->switch_calibration(rtwdev);
> + }
As far as I can see, a count of 0 or 1 still skips IQK. mac80211
finalizes directly, without the beacon notification that sets csa.vif,
so rtw_fw_csa_active() is false here.
A user can reach this with a normal hostapd_cli chan_switch request
using count 1.
I think we should cover the immediate switch path too.
[ ... ]
> diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c
[ ... ]
> hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS |
> - WIPHY_FLAG_TDLS_EXTERNAL_SETUP;
> + WIPHY_FLAG_TDLS_EXTERNAL_SETUP |
> + WIPHY_FLAG_HAS_CHANNEL_SWITCH;
I think RTL8812AU still misses its channel specific setup.
rtw8812a_phy_calibration() selects different AGC tables for channels
36 through 64 and for channels 100 and above.
A user can hit this with a normal switch, e.g. from channel 36 to 149,
where both channels are permitted.
That leaves the low channel table in use. rtw88xxa_set_channel() and the
watchdog's IQK path do not load the other table, and this chip has no
switch_calibration callback.
We should cover that chip's channel specific setup too.
Best regards,
Luka Gejak
next prev parent reply other threads:[~2026-12-01 16:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 8:08 [PATCH rtw-next v16 0/3] wifi: rtw88: channel switch in AP mode Mehmet Fide
2026-12-01 8:08 ` [PATCH rtw-next v16 1/3] wifi: rtw88: download the beacon the reserved page was built with Mehmet Fide
2026-12-01 8:08 ` [PATCH rtw-next v16 2/3] wifi: rtw88: support channel switch in AP mode Mehmet Fide
2026-12-01 16:53 ` Luka Gejak [this message]
2026-12-01 18:10 ` Mehmet Fide
2026-12-02 1:28 ` Ping-Ke Shih
2026-12-01 8:08 ` [PATCH rtw-next v16 3/3] wifi: rtw88: time the countdown downloads from the TBTT Mehmet Fide
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179614397914.541347.2058941307456321622@linux.dev \
--to=luka.gejak@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mehmet.fide@gmail.com \
--cc=mehmet.fide@screeningeagle.com \
--cc=pkshih@realtek.com \
--cc=rtl8821cerfe2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.