Re: [PATCH v2] wifi: brcmfmac: add DPP support and fix fw-supplicant/P2P interop
Arend van Spriel <[email protected]> Mon, 6 Jul 2026 12:25:23 +0200
| Newsgroups | dev.linux.lists.brcm80211,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 4 Jun 2026 11:42:29 +0800, Jason Huang wrote: > From: Kurt Lee <[email protected]> > > Add DPP support in brcmfmac and include follow-up fixes needed for > reliable operation with mixed security setups. [...] > if (sme->crypto.psk) { > if (is_sae_akm && > profile->use_fwsup != BRCMF_PROFILE_FWSUP_SAE) { > profile->use_fwsup = BRCMF_PROFILE_FWSUP_NONE; > } else if (!is_sae_akm && > profile->use_fwsup != BRCMF_PROFILE_FWSUP_SAE) { > if (WARN_ON(profile->use_fwsup != > BRCMF_PROFILE_FWSUP_NONE)) { > err = -EINVAL; > goto done; > } > brcmf_dbg(INFO, "using PSK offload\n"); > profile->use_fwsup = BRCMF_PROFILE_FWSUP_PSK; > } > } else { > profile->use_fwsup = BRCMF_PROFILE_FWSUP_NONE; > } The else branch resets use_fwsup unconditionally when psk is NULL. For a pure SAE connection (sae_pwd set, psk NULL), brcmf_set_key_mgmt() set use_fwsup = FWSUP_SAE, but the else clears it to NONE. As a result sup_wpa = 0 is written and the SAE password path below is never reached, breaking WPA3-SAE. Same problem for 802.1X (FWSUP_1X, psk = NULL). For DPP, use_fwsup is already FWSUP_NONE at this point, so writing sup_wpa = 0 only when use_fwsup == NONE would achieve the goal without the regression. This patch will also conflict with the pending "wifi: brcmfmac: fix 802.11x-SHA256 call trace warning" patch as both touch brcmf_set_key_mgmt(). Please rebase on top of it. The remain-on-channel wdev tracking fix is a pre-existing P2P bug independent of DPP. Please split it into a separate patch with a Fixes: tag so it can be backported to stable independently. Regards, Arend