Linux wireless drivers development
 help / color / mirror / Atom feed
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 v15 2/3] wifi: rtw88: support channel switch in AP mode
Date: Sat, 28 Nov 2026 13:08:16 +0100	[thread overview]
Message-ID: <20261128120816.36110-1-luka.gejak@linux.dev> (raw)
In-Reply-To: <20261128071858.42275-3-mehmet.fide@gmail.com>

Hi Mehmet,

Thanks for the v15. Two comments below.

On November 28, 2026 8:18:57 AM GMT+01:00, Mehmet Fide
<mehmet.fide@gmail.com> 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@gmail.com/

Best regards,
Luka Gejak

  reply	other threads:[~2026-11-28 12:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28  7:18 [PATCH rtw-next v15 0/3] wifi: rtw88: channel switch in AP mode Mehmet Fide
2026-11-28  7:18 ` [PATCH rtw-next v15 1/3] wifi: rtw88: download the beacon the reserved page was built with Mehmet Fide
2026-11-28  7:18 ` [PATCH rtw-next v15 2/3] wifi: rtw88: support channel switch in AP mode Mehmet Fide
2026-11-28 12:08   ` Luka Gejak [this message]
2026-11-28  7:18 ` [PATCH rtw-next v15 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=20261128120816.36110-1-luka.gejak@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox