mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-03 10:13:47 +01:00
wifi-scripts: fix handling of 64 character WPA key
The key variable is not defined in the scope when setting wpa_psk. Use config.key instead. This fixes configuration the 64 characters wpa_psk directly. Reported-by: donjoe in OpenWrt Forum Link: https://github.com/openwrt/openwrt/pull/22182 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
758c8a26e9
commit
69daeebc9a
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ function iface_auth_type(config) {
|
|||
config.macaddr_acl = 2;
|
||||
config.wpa_psk_radius = 2;
|
||||
} else if (length(config.key) == 64) {
|
||||
config.wpa_psk = key;
|
||||
config.wpa_psk = config.key;
|
||||
} else if (length(config.key) >= 8 && length(config.key) <= 63) {
|
||||
config.wpa_passphrase = config.key;
|
||||
} else if (config.key) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue