aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-12-08 10:46:56 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-08 12:06:58 (GMT)
commitf44d760cf0717af1fc4b3cf73b385ffbbe5fb4b5 (patch)
tree276ffe438cc8f6efe144b9bc5e9093c9d21a8050 /wpa_supplicant
parentf3784a6b9423a94215dc2ee4fd01b3cf3ed611b8 (diff)
downloadhostap-f44d760cf0717af1fc4b3cf73b385ffbbe5fb4b5.zip
hostap-f44d760cf0717af1fc4b3cf73b385ffbbe5fb4b5.tar.gz
hostap-f44d760cf0717af1fc4b3cf73b385ffbbe5fb4b5.tar.bz2
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 <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/interworking.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 60c8be9..3987008 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;