Linux wireless drivers development
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Mehmet Fide <mehmet.fide@gmail.com>
Cc: Luka Gejak <luka.gejak@linux.dev>,
	Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"mehmet.fide@screeningeagle.com" <mehmet.fide@screeningeagle.com>
Subject: RE: [PATCH rtw-next v14 2/3] wifi: rtw88: support channel switch in AP mode
Date: Fri, 27 Nov 2026 06:23:09 +0000	[thread overview]
Message-ID: <84030084b4f24c4199a85cf05fae10b0@realtek.com> (raw)
In-Reply-To: <20261121193644.603289-3-mehmet.fide@gmail.com>

Mehmet Fide <mehmet.fide@gmail.com> wrote:
> @@ -857,12 +878,16 @@ static int rtw_ops_suspend(struct ieee80211_hw *hw,
>                            struct cfg80211_wowlan *wowlan)
>  {
>         struct rtw_dev *rtwdev = hw->priv;
> +       struct ieee80211_vif *csa_vif;
>         int ret;
> 
>         mutex_lock(&rtwdev->mutex);
> +       csa_vif = rtwdev->csa_vif;
> +       rtw_fw_csa_stop(rtwdev, csa_vif);
>         ret = rtw_wow_suspend(rtwdev, wowlan);
>         if (ret)
>                 rtw_err(rtwdev, "failed to suspend for wow %d\n", ret);
> +       rtwdev->csa_wow_vif = ret ? NULL : csa_vif;

Have you actually tested WoWLAN with AP mode operating CSA? 
If not, I prefer not resuming CSA. 

As I know, we can only support STA mode WoWLAN under single one interface
combination.

>         mutex_unlock(&rtwdev->mutex);
> 
>         return ret ? 1 : 0;
> @@ -871,12 +896,18 @@ static int rtw_ops_suspend(struct ieee80211_hw *hw,
>  static int rtw_ops_resume(struct ieee80211_hw *hw)
>  {
>         struct rtw_dev *rtwdev = hw->priv;
> +       struct ieee80211_vif *csa_vif;
>         int ret;
> 
>         mutex_lock(&rtwdev->mutex);
>         ret = rtw_wow_resume(rtwdev);
>         if (ret)
>                 rtw_err(rtwdev, "failed to resume for wow %d\n", ret);
> +       csa_vif = rtwdev->csa_wow_vif;
> +       rtwdev->csa_wow_vif = NULL;
> +       if (!ret && csa_vif && csa_vif->bss_conf.csa_active &&
> +           csa_vif->bss_conf.enable_beacon)
> +               rtw_fw_csa_start(rtwdev, csa_vif, false);
>         mutex_unlock(&rtwdev->mutex);
> 
>         return ret ? 1 : 0;

[...]

> --- a/drivers/net/wireless/realtek/rtw88/main.h
> +++ b/drivers/net/wireless/realtek/rtw88/main.h
> @@ -2096,6 +2096,12 @@ struct rtw_dev {
>         struct work_struct ips_work;
>         struct work_struct fw_recovery_work;
>         struct work_struct update_beacon_work;
> +       struct delayed_work csa_beacon_work;
> +       struct ieee80211_vif *csa_vif;
> +       struct ieee80211_vif *csa_wow_vif;
> +       ktime_t csa_due;
> +       u8 csa_count;
> +       bool csa_retry;

Create a struct to hold these CSA data?

> 
>         /* used to protect txqs list */
>         spinlock_t txq_lock;
> --
> 2.56.0


  parent reply	other threads:[~2026-11-27  6:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21 19:36 [PATCH rtw-next v14 0/3] wifi: rtw88: channel switch in AP mode Mehmet Fide
2026-11-21 19:36 ` [PATCH rtw-next v14 1/3] wifi: rtw88: download the beacon the reserved page was built with Mehmet Fide
2026-11-21 19:36 ` [PATCH rtw-next v14 2/3] wifi: rtw88: support channel switch in AP mode Mehmet Fide
2026-11-24  0:24   ` Luka Gejak
2026-11-24  8:31     ` Mehmet Fide
2026-11-24  9:13       ` Ping-Ke Shih
2026-11-24  9:27         ` Mehmet Fide
2026-11-24  9:34           ` Ping-Ke Shih
2026-11-27  6:23   ` Ping-Ke Shih [this message]
2026-11-21 19:36 ` [PATCH rtw-next v14 3/3] wifi: rtw88: time the countdown downloads from the TBTT Mehmet Fide
2026-11-24  0:24   ` Luka Gejak
2026-11-24  8:31     ` Mehmet Fide
2026-11-24  9:09       ` Ping-Ke Shih
2026-11-24  9:50         ` Luka Gejak
2026-11-27  6:34   ` Ping-Ke Shih

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=84030084b4f24c4199a85cf05fae10b0@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luka.gejak@linux.dev \
    --cc=mehmet.fide@gmail.com \
    --cc=mehmet.fide@screeningeagle.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