Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nl80211: Allow SAE Authentication for NL80211_CMD_CONNECT

This commit allows SAE Authentication for NL80211_CMD_CONNECT
interface, provided host driver advertises the support.

Host drivers may offload the SAE authentication to user space
through NL80211_CMD_EXTERNAL_AUTH interface and thus expect
the user space to advertise support to handle offload through
NL80211_ATTR_EXTERNAL_AUTH_SUPPORT in NL80211_CMD_CONNECT
request. Such drivers should reject the connect request on no
offload support from user space.

Signed-off-by: Srinivas Dasari <dasaris@qti.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Srinivas Dasari and committed by
Johannes Berg
10773a7c 40cbfa90

+3 -2
+3 -2
net/wireless/nl80211.c
··· 3921 3921 return false; 3922 3922 return true; 3923 3923 case NL80211_CMD_CONNECT: 3924 - /* SAE not supported yet */ 3925 - if (auth_type == NL80211_AUTHTYPE_SAE) 3924 + if (!(rdev->wiphy.features & NL80211_FEATURE_SAE) && 3925 + auth_type == NL80211_AUTHTYPE_SAE) 3926 3926 return false; 3927 + 3927 3928 /* FILS with SK PFS or PK not supported yet */ 3928 3929 if (auth_type == NL80211_AUTHTYPE_FILS_SK_PFS || 3929 3930 auth_type == NL80211_AUTHTYPE_FILS_PK)