From e005725a69649005405b96512f385ffa0bed09a5 Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Tue, 30 Jan 2018 12:42:46 +0530 Subject: [PATCH] nl80211: Add DPP and OWE AKM selectors to CONNECT/ASSOC request This is needed to support drivers that use NL80211_ATTR_AKM_SUITES. Signed-off-by: Srinivas Dasari --- src/drivers/driver_nl80211.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 277d52986..9b3bde278 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5256,7 +5256,9 @@ static int nl80211_connect_common(struct wpa_driver_nl80211_data *drv, params->key_mgmt_suite == WPA_KEY_MGMT_FILS_SHA256 || params->key_mgmt_suite == WPA_KEY_MGMT_FILS_SHA384 || params->key_mgmt_suite == WPA_KEY_MGMT_FT_FILS_SHA256 || - params->key_mgmt_suite == WPA_KEY_MGMT_FT_FILS_SHA384) { + params->key_mgmt_suite == WPA_KEY_MGMT_FT_FILS_SHA384 || + params->key_mgmt_suite == WPA_KEY_MGMT_OWE || + params->key_mgmt_suite == WPA_KEY_MGMT_DPP) { int mgmt = RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X; switch (params->key_mgmt_suite) { @@ -5299,6 +5301,12 @@ static int nl80211_connect_common(struct wpa_driver_nl80211_data *drv, case WPA_KEY_MGMT_FT_FILS_SHA384: mgmt = RSN_AUTH_KEY_MGMT_FT_FILS_SHA384; break; + case WPA_KEY_MGMT_OWE: + mgmt = RSN_AUTH_KEY_MGMT_OWE; + break; + case WPA_KEY_MGMT_DPP: + mgmt = RSN_AUTH_KEY_MGMT_DPP; + break; case WPA_KEY_MGMT_PSK: default: mgmt = RSN_AUTH_KEY_MGMT_PSK_OVER_802_1X;