wifi-scripts: emit a raw 64-hex PSK unquoted for station mode

A 64-character hex PSK was always quoted, but wpa_supplicant rejects a
quoted passphrase longer than 63 characters, so the network block failed
and the STA never associated while netifd still reported the radio up. Emit
the key unquoted when it is a 64-character raw PMK, matching the AP path.
The sae_password branch keeps quoting, as SAE passwords are arbitrary
strings.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2026-07-10 13:58:55 +02:00
parent 830ae67b44
commit 5b47cec245

View file

@ -141,6 +141,8 @@ function setup_sta(data, config) {
if (config.mode == 'mesh' || config.auth_type == 'sae')
config.sae_password = `"${config.key}"`;
else if (length(config.key) == 64)
config.psk = config.key;
else
config.psk = `"${config.key}"`;