]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: brcmfmac: fix EXTSAE WPA3 connection failure due to AUTH TX failure
authorTing-Ying Li <tingying.li@cypress.com>
Wed, 23 Jul 2025 10:59:17 +0000 (16:29 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Jul 2025 12:11:16 +0000 (14:11 +0200)
commitf2d7c3c380bf0c38c395d50de3a7c1a6275983cb
tree67300d66a88f3d9377b56f7484e1bb754cce6c12
parentcb106027444074ed612e45982c32a205697a0381
wifi: brcmfmac: fix EXTSAE WPA3 connection failure due to AUTH TX failure

For WPA3-SAE Connection in EXTSAE mode, the userspace daemon is allowed to
generate the SAE Auth frames. The driver uses the "mgmt_frame" FW IOVAR to
transmit this MGMT frame.

Before sending the IOVAR, the Driver is incorrectly treating the channel
number read from the FW as a frequency value and again attempts to convert
this into a channel number using ieee80211_frequency_to_channel().

This added an invalid channel number as part of the IOVAR request to the FW
And some FW which strictly expects a valid channel would return BAD_CHAN
error, while failing to transmit the driver requested SAE Auth MGMT frame.

Fix this in the CYW vendor specific MGMT TX cfg80211 ops handler, by not
treating the channel number read from the FW as frequency value and skip
the attempt to convert it again into a channel number.

Also fix this in the generic MGMT TX cfg80211 ops handler.

Fixes: c2ff8cad6423 ("brcm80211: make mgmt_tx in brcmfmac accept a NULL channel")
Fixes: 66f909308a7c ("wifi: brcmfmac: cyw: support external SAE authentication in station mode")
Signed-off-by: Ting-Ying Li <tingying.li@cypress.com>
Signed-off-by: Gokul Sivakumar <gokulkumar.sivakumar@infineon.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>>
Link: https://patch.msgid.link/20250723105918.5229-1-gokulkumar.sivakumar@infineon.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cyw/core.c