]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0: Enable PMF automatically for Hotspot 2.0 network profiles
authorJouni Malinen <jouni@codeaurora.org>
Sat, 8 Dec 2018 10:46:56 +0000 (12:46 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 8 Dec 2018 12:06:58 +0000 (14:06 +0200)
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>
wpa_supplicant/interworking.c

index 60c8be9a6c6a5121475a090834f66a6ca1f9a44f..3987008013f302c3c25d4e15f69b52429296d705 100644 (file)
@@ -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;