Wireless fixes

- Allow connection to hidden networks
- Set automatic as default choice for manual input
This commit is contained in:
bergware
2025-04-03 23:24:26 +02:00
parent e5d408db79
commit 0a996ac5c7
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -185,8 +185,8 @@ case 'join':
}
if ($manual || $safe) {
echo "<tr><td>"._('Security')."</td><td><select name=\"SECURITY\" onclick=\"showSecurity(this.value)\">";
echo mk_option($safe, 'open', _('None'));
echo mk_option($safe, 'auto', _('Automatic'));
echo mk_option($safe, 'open', _('None'));
echo mk_option($safe, 'PSK', _('WPA2'));
echo mk_option($safe, 'PSK SAE', _('WPA2/WPA3'));
echo mk_option($safe, 'SAE', _('WPA3'));
+1
View File
@@ -147,6 +147,7 @@ wpa_configuration(){
[[ -z $2 && -n $CC ]] && echo "country=${CC,,}" >>$WPA
echo "network={" >>$WPA
echo "ssid=\"$SSID\"" >>$WPA
echo "scan_ssid=1" >>$WPA
[[ $1 == "PSK" ]] && echo "key_mgmt=WPA-PSK" >>$WPA
[[ $1 == "SAE" ]] && echo "key_mgmt=SAE" >>$WPA
[[ $1 =~ "IEEE" && $1 != "IEEE 802.1X/SHA-256" ]] && echo "key_mgmt=WPA-EAP" >>$WPA