Linux wireless drivers development
 help / color / mirror / Atom feed
From: Zong-Zhe Yang <kevin_yang@realtek.com>
To: Josef Schlehofer <pepe.schlehofer@gmail.com>
Cc: Ping-Ke Shih <pkshih@realtek.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH rtw-next 2/2] wifi: rtw89: allow AP mode on 6 GHz
Date: Thu, 3 Dec 2026 05:14:32 +0000	[thread overview]
Message-ID: <f6b5a5193dbb4e08b9bb457b0159aed5@realtek.com> (raw)
In-Reply-To: <20261202221041.40494-1-pepe.schlehofer@gmail.com>

Josef Schlehofer <pepe.schlehofer@gmail.com> wrote:
> 
> > Could you reuse reg_6ghz_power for AP mode ?
> 
> Yes, v2 drops ap_reg_power.
> 
> > Given that our p2p has no he cap, would this case really happen ?
> 
> Yes. Without the check, wpa_supplicant starts a P2P group on 6 GHz
> (p2p_group_add freq=5975 he allow_6ghz) and the GO beacons. A phone
> that joins it gets no HE, the GO sends to it at 54 Mbit/s. With the

Got it.

> check START_AP fails with -EOPNOTSUPP, as before this patch. I would
> keep it, but I can drop it if you prefer.

Could you add a patch to modify rtw89_init_he_eht_cap first ?
For example:
    [...]
        u16 types_mask;

        switch (iftype) {
        case NL80211_IFTYPE_STATION:
            types_mask = BIT(NL80211_IFTYPE_STATION) |
                       BIT(NL80211_IFTYPE_P2P_CLIENT);
            break;
        case NL80211_IFTYPE_AP:
            types_mask = BIT(NL80211_IFTYPE_AP) |
                       BIT(NL80211_IFTYPE_P2P_GO);
            break;
        default:
            continue;
        }
    [...]
        iftype_data[idx].types_mask = types_mask;
    [...]

Then after you try GO on 6GHz again and confirm things are resolved,
you can drop the P2P check in this one.

> 
> > For AP mode, get power_type from rtw89_ap_6ghz_power_type() here.
> > And deal with another sub-function in rtw89_reg_6ghz_recalc() for AP mode.
> > Then, replace rtw89_ap_6ghz_power_update with rtw89_reg_6ghz_recalc().
> 
> OK, v2 does that. I will send it once the P2P check is settled.
> 
> Josef

  reply	other threads:[~2026-12-03  5:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 12:07 [PATCH rtw-next 0/2] wifi: rtw89: allow AP mode on 6 GHz Josef Schlehofer
2026-11-29 12:07 ` [PATCH rtw-next 1/2] wifi: rtw89: advertise HE 6 GHz antenna pattern consistency Josef Schlehofer
2026-11-29 12:07 ` [PATCH rtw-next 2/2] wifi: rtw89: allow AP mode on 6 GHz Josef Schlehofer
2026-12-02  9:08   ` Zong-Zhe Yang
2026-12-02 22:10     ` Josef Schlehofer
2026-12-03  5:14       ` Zong-Zhe Yang [this message]
2026-12-01 11:33 ` [PATCH rtw-next 0/2] " Josef Schlehofer
2026-12-02  0:39   ` 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=f6b5a5193dbb4e08b9bb457b0159aed5@realtek.com \
    --to=kevin_yang@realtek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pepe.schlehofer@gmail.com \
    --cc=pkshih@realtek.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