wifi-scripts: fix WPA Enterprise / PPSK FT_KEY_CANT_BE_DERIVED error

The RADIUS secret is now stored in config.auth_server_shared_secret (via
alias) instead of config.auth_secret. But the code checks the existence of
config.auth_secret when ieee80211r is enabled to derive necessary keys.

Fixes: 218f3884d2 ("wifi-scripts: add ucode based scripts")
Signed-off-by: Marek Lindner <marek.lindner@mailbox.org>
Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/26057
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Marek Lindner authored and Robert Marko committed 2026-12-03 12:36:51 +01:00
1 parent 94372472e8
commit c0ed13f6e0
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=wifi-scripts
PKG_VERSION:=1.0
PKG_RELEASE:=5
PKG_RELEASE:=6
PKG_LICENSE:=GPL-2.0
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
@@ -77,7 +77,7 @@ function bss_refusal(config, band) {
if (config.ieee80211r && config.wpa >= 2 &&
!(config.ft_psk_generate_local ?? ft_psk_local_default(config)) &&
(!config.r0kh || !config.r1kh) && !config.auth_secret && !config.key)
(!config.r0kh || !config.r1kh) && !config.auth_server_shared_secret && !config.key)
return 'FT_KEY_CANT_BE_DERIVED';
return null;
@@ -560,7 +560,7 @@ function iface_roaming(config) {
if (!config.ft_psk_generate_local) {
if (!config.r0kh || !config.r1kh) {
let ft_key = md5(`${config.mobility_domain}/${config.auth_secret ?? config.key}`);
let ft_key = md5(`${config.mobility_domain}/${config.auth_server_shared_secret ?? config.key}`);
set_default(config, 'r0kh', [ 'ff:ff:ff:ff:ff:ff,*,' + ft_key ]);
set_default(config, 'r1kh', [ '00:00:00:00:00:00,00:00:00:00:00:00,' + ft_key ]);