From f44d760cf0717af1fc4b3cf73b385ffbbe5fb4b5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 8 Dec 2018 12:46:56 +0200 Subject: [PATCH] HS 2.0: Enable PMF automatically for Hotspot 2.0 network profiles Hotspot 2.0 Release 2 requires PMF to be negotiated, so enable this by default in the network profiles created from cred blocks. Signed-off-by: Jouni Malinen --- wpa_supplicant/interworking.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c index 60c8be9a6..398700801 100644 --- a/wpa_supplicant/interworking.c +++ b/wpa_supplicant/interworking.c @@ -958,6 +958,7 @@ static int interworking_set_hs20_params(struct wpa_supplicant *wpa_s, "WPA-EAP WPA-EAP-SHA256" : "WPA-EAP"; if (wpa_config_set(ssid, "key_mgmt", key_mgmt, 0) < 0 || wpa_config_set(ssid, "proto", "RSN", 0) < 0 || + wpa_config_set(ssid, "ieee80211w", "1", 0) < 0 || wpa_config_set(ssid, "pairwise", "CCMP", 0) < 0) return -1; return 0;