Skip to content

Commit

Permalink
brcmfmac: Fix 802.1x
Browse files Browse the repository at this point in the history
Commit 7d239fb 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: 7d239fb (brcmfmac: Fix interoperating DPP and other encryption network access)
Fixes: #5964
  • Loading branch information
iucoen authored and pelwell committed Feb 20, 2024
1 parent 8896dc2 commit b42ea68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2493,7 +2493,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;
}

Expand Down

0 comments on commit b42ea68

Please sign in to comment.