diff options
| author | Hauke Mehrtens | 2026-02-25 23:41:11 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2026-02-26 19:23:55 +0000 |
| commit | aeebbead6f737ff37953e8d8a2575df437a46aed (patch) | |
| tree | e6277b3cf263ccff7f405bc321af9edc78b06760 | |
| parent | be5b8605ab3abead968b318580ad5bfc3ec46743 (diff) | |
| download | openwrt-aeebbead6f737ff37953e8d8a2575df437a46aed.tar.gz | |
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>
(cherry picked from commit 69daeebc9a4f688d672ea1fef315a287730cd8a8)
| -rw-r--r-- | package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc index 5ae4de48d9..0629e70409 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc @@ -128,7 +128,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) { |