From f19a4c1e2de980b4242c1520d7311c5c5942c3ef Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 6 Jan 2021 18:03:45 +0000 Subject: [PATCH] hostapd: Enable WPA-PSK-SHA256 when 802.11w is enabled Signed-off-by: Michael Tremer --- html/cgi-bin/wlanap.cgi | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi index 575b696d7b..923b96cbc9 100644 --- a/html/cgi-bin/wlanap.cgi +++ b/html/cgi-bin/wlanap.cgi @@ -691,13 +691,21 @@ END print CONFIGFILE "ieee80211w=0\n"; } + my @wpa_key_mgmt=( + "WPA-PSK", + ); + + if (($wlanapsettings{'IEEE80211W'} eq "on") || ($wlanapsettings{'IEEE80211W'} eq "optional")) { + push(@wpa_key_mgmt, "WPA-PSK-SHA256"); + } + if ( $wlanapsettings{'ENC'} eq 'wpa1'){ print CONFIGFILE <