Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6f86524 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "nl80211: Allow SAE Authentication for NL80211_CMD_CONNECT"

parents 496f6e1b 6fe0e6f5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3788,9 +3788,10 @@ static bool nl80211_valid_auth_type(struct cfg80211_registered_device *rdev,
			return false;
		return true;
	case NL80211_CMD_CONNECT:
		/* SAE not supported yet */
		if (auth_type == NL80211_AUTHTYPE_SAE)
		if (!(rdev->wiphy.features & NL80211_FEATURE_SAE) &&
		    auth_type == NL80211_AUTHTYPE_SAE)
			return false;

		/* FILS with SK PFS or PK not supported yet */
		if (auth_type == NL80211_AUTHTYPE_FILS_SK_PFS ||
		    auth_type == NL80211_AUTHTYPE_FILS_PK)