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:
parent
830ae67b44
commit
5b47cec245
1 changed files with 2 additions and 0 deletions
|
|
@ -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}"`;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue