mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
From 532dfd066d49f9c5ab083076e48272a38b36d053 Mon Sep 17 00:00:00 2001
|
|
From: Mike Cui <cuicui@gmail.com>
|
|
Date: Mon, 19 Feb 2024 17:11:49 -0800
|
|
Subject: [PATCH 427/697] brcmfmac: Fix 802.1x
|
|
|
|
Commit 7d239fbf9d4 broke 802.1X authentication by setting
|
|
profile->use_fwsup = NONE whenever PSK is not used. However
|
|
802.1X does not use PSK and requires profile->use_fwsup set
|
|
to 1X, or brcmf_cfg80211_set_pmk() fails. Fix this by checking
|
|
that profile->use_fwsup is not already set to 1X and avoid
|
|
setting it to NONE in that case.
|
|
|
|
Fixes: 7d239fbf9d4 (brcmfmac: Fix interoperating DPP and other encryption network access)
|
|
Fixes: https://github.com/raspberrypi/linux/issues/5964
|
|
---
|
|
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
|
|
@@ -2481,7 +2481,7 @@ brcmf_cfg80211_connect(struct wiphy *wip
|
|
brcmf_dbg(INFO, "using PSK offload\n");
|
|
profile->use_fwsup = BRCMF_PROFILE_FWSUP_PSK;
|
|
}
|
|
- } else {
|
|
+ } else if (profile->use_fwsup != BRCMF_PROFILE_FWSUP_1X) {
|
|
profile->use_fwsup = BRCMF_PROFILE_FWSUP_NONE;
|
|
}
|
|
|