Re: [PATCH] wifi: brcmfmac: configure SAE PWE method for external SAE AP

Gokul Sivakumar <[email protected]> Fri, 31 Jul 2026 13:50:53 +0000
Newsgroups dev.linux.lists.brcm80211,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless
Message-ID <fn7xsi3b5k6bshyueeybjdb4vzudsdwt6arjn3swj3lszew5nv@v5xtmaxhslbm>
On 07/29, Bogdan Nicolae wrote:
> Gokul,
> 
> Looks like this is also missing, can you please add it in your patch:

sure, we will include the quoted patch while submitting our "extsae_pwe" patchset
for community review.

Kindly avoid top-posting while sending your email replies.
Need to use interleaved quoting.
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> index d32b35ce0..455f5619f 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> @@ -77,6 +77,11 @@
> 
> #define        DOT11_BCN_PRB_FIXED_LEN         12      /* beacon/probe
> fixed length */
> 
> +#define WL_IOV_OP_BSSCFG_DISABLE               0
> +#define WL_IOV_OP_BSSCFG_ENABLE                        1
> +#define WL_IOV_OP_MANUAL_STA_BSSCFG_CREATE     2
> +#define WL_IOV_OP_MANUAL_AP_BSSCFG_CREATE      3
> +
> #define BRCMF_SCAN_JOIN_ACTIVE_DWELL_TIME_MS   320
> #define BRCMF_SCAN_JOIN_PASSIVE_DWELL_TIME_MS  400
> #define BRCMF_SCAN_JOIN_PROBE_INTERVAL_MS      20
> @@ -5260,6 +5265,19 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy,
> struct net_device *ndev,
>                if ((brcmf_feat_is_enabled(ifp, BRCMF_FEAT_MBSS)) && (!mbss))
>                        brcmf_fil_iovar_int_set(ifp, "mbss", 1);
> 
> +               if (!test_bit(BRCMF_VIF_STATUS_AP_CREATED,
> &ifp->vif->sme_state)) {
> +                       bss_enable.bsscfgidx = cpu_to_le32(ifp->bsscfgidx);
> +                       bss_enable.enable =
> +                               cpu_to_le32(WL_IOV_OP_MANUAL_AP_BSSCFG_CREATE);
> +                       err = brcmf_fil_iovar_data_set(ifp, "bss", &bss_enable,
> +                                                      sizeof(bss_enable));
> +                       if (err < 0) {
> +                               bphy_err(drvr, "bss_enable config failed %d\n",
> +                                        err);
> +                               goto exit;
> +                       }
> +               }
> +
>                err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_AP, 1);
>                if (err < 0) {
>                        bphy_err(drvr, "setting AP mode failed %d\n",
> 
> Thanks,
> Bogdan
> 
> On Wed, Jul 29, 2026 at 8:19 AM Bogdan Nicolae <[email protected]> wrote:
> >
> > Gokul,
> >
> > Great to hear. Are there any other changes you are planning to submit?
> > I found this to be the minimal working config at least for WPA3 personal,
> > but would like to know if I am missing anything else.

Could you help us with the exact version of 43455 firmware, Raspbian distro and
kernel that you are currently using in your RPi ? 

Regards,
Gokul