aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-11-01 15:14:30 (GMT)
committerJouni Malinen <j@w1.fi>2017-11-01 15:14:30 (GMT)
commit69d8d029f5af2a1726f5a41102a08366c31d58a8 (patch)
treee9e99664a80cdc558f3a9c41f1757d53b040c832 /wpa_supplicant
parent0c3bc1be09703cab7ca7f54d515f88b3014f555b (diff)
downloadhostap-69d8d029f5af2a1726f5a41102a08366c31d58a8.zip
hostap-69d8d029f5af2a1726f5a41102a08366c31d58a8.tar.gz
hostap-69d8d029f5af2a1726f5a41102a08366c31d58a8.tar.bz2
DPP: Enable PMF when adding wpa_supplicant network profile
DPP AKM should really require PMF to be used, but since that is not yet explicitly required in the specification, make PMF enabled for now. For legacy PSK cases, configure PMF to be enabled as well to support both APs in no-PMF, optional-PMF, and required-PMF configuration. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/dpp_supplicant.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c
index 1d920b4..15e6b63 100644
--- a/wpa_supplicant/dpp_supplicant.c
+++ b/wpa_supplicant/dpp_supplicant.c
@@ -936,6 +936,7 @@ static struct wpa_ssid * wpas_dpp_add_network(struct wpa_supplicant *wpa_s,
if (auth->connector) {
ssid->key_mgmt = WPA_KEY_MGMT_DPP;
+ ssid->ieee80211w = 1;
ssid->dpp_connector = os_strdup(auth->connector);
if (!ssid->dpp_connector)
goto fail;
@@ -963,7 +964,8 @@ static struct wpa_ssid * wpas_dpp_add_network(struct wpa_supplicant *wpa_s,
}
if (!auth->connector) {
- ssid->key_mgmt = WPA_KEY_MGMT_PSK;
+ ssid->key_mgmt = WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_PSK_SHA256;
+ ssid->ieee80211w = 1;
if (auth->passphrase[0]) {
if (wpa_config_set_quoted(ssid, "psk",
auth->passphrase) < 0)