mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
brcmfmac: Fix 802.1x
Commit7d239fbf9dbroke 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:7d239fbf9d(brcmfmac: Fix interoperating DPP and other encryption network access) Fixes: https://github.com/raspberrypi/linux/issues/5964
This commit is contained in:
@@ -2495,7 +2495,7 @@ brcmf_cfg80211_connect(struct wiphy *wiphy, struct net_device *ndev,
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user