From: Jouni Malinen <jouni@qca.qualcomm.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: <linux-wireless@vger.kernel.org>,
Srinivas Dasari <dasaris@qti.qualcomm.com>,
Jouni Malinen <jouni@qca.qualcomm.com>
Subject: [PATCH 2/2] nl80211: Allow SAE Authentication for NL80211_CMD_CONNECT
Date: Wed, 13 Dec 2017 19:50:38 +0200 [thread overview]
Message-ID: <1513187438-23967-2-git-send-email-jouni@qca.qualcomm.com> (raw)
In-Reply-To: <1513187438-23967-1-git-send-email-jouni@qca.qualcomm.com>
From: Srinivas Dasari <dasaris@qti.qualcomm.com>
This commit allows SAE Authentication for NL80211_CMD_CONNECT
interface, provided this is supported by the host driver.
Signed-off-by: Srinivas Dasari <dasaris@qti.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
---
net/wireless/nl80211.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 72ec615..e920c3a 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -3916,7 +3916,8 @@ static bool nl80211_valid_auth_type(struct cfg80211_registered_device *rdev,
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 ||
--
2.7.4
next prev parent reply other threads:[~2017-12-13 17:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-13 17:50 [PATCH 1/2] cfg80211/nl80211: Optional authentication offload to userspace Jouni Malinen
2017-12-13 17:50 ` Jouni Malinen [this message]
2017-12-14 19:58 ` Marcel Holtmann
2017-12-15 8:51 ` Srinivas Dasari
2017-12-15 9:28 ` Arend van Spriel
2017-12-19 9:45 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1513187438-23967-2-git-send-email-jouni@qca.qualcomm.com \
--to=jouni@qca.qualcomm.com \
--cc=dasaris@qti.qualcomm.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.