Fix: handle 64 char passkey in absence of 8-63 char passhprase

This commit is contained in:
billz
2023-10-08 11:46:12 +02:00
parent 2ac5f94594
commit deac75af89
2 changed files with 9 additions and 3 deletions

View File

@@ -27,9 +27,9 @@ function knownWifiStations(&$networks)
$network['ssid'] = $ssid;
break;
case 'psk':
if (array_key_exists('passphrase', $network)) {
break;
}
$network['passkey'] = trim($lineArr[1]);
$network['protocol'] = 'WPA';
break;
case '#psk':
$network['protocol'] = 'WPA';
case 'wep_key0': // Untested