Define constant for Open for security protocol

This commit is contained in:
billz
2025-11-23 09:47:58 +01:00
parent db9ca93bfb
commit f547a35312
2 changed files with 8 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ function DisplayWPAConfig()
$ok = true;
foreach ($tmp_networks as $ssid => $network) {
if ($network['protocol'] === 'Open') {
if ($network['protocol'] === $wifi::SECURITY_OPEN) {
fwrite($wpa_file, "network={".PHP_EOL);
fwrite($wpa_file, "\tssid=\"".$ssid."\"".PHP_EOL);
fwrite($wpa_file, "\tkey_mgmt=NONE".PHP_EOL);