]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: fix wifi failure on specifying value of DAE client 21522/head
authorVal Kulkov <val.kulkov@gmail.com>
Mon, 12 Jan 2026 17:21:52 +0000 (17:21 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 15 Jan 2026 20:09:36 +0000 (21:09 +0100)
The code to be replaced is a glorious no-op. A default value for
config.radius_das_client does not need to be assigned. This parameter
already has non-empty value: see the enclosing 'if' block.

As a result, the value of config.radius_das_client never gets modified
to contain both dae_client and dae_secret. This breaks hostapd.add_iface()
that expects config.radius_das_client to contain both dae_client and
dae_secret separated by a whitespace.

Fixes: #21519
Signed-off-by: Val Kulkov <val.kulkov@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21522
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/ap.uc

index ff108ffdbbc763e61a62f8899c1741d251ca5c6e..5f1d110ce6beea6412a1c22a874758306f71d8f5 100644 (file)
@@ -166,7 +166,7 @@ function iface_auth_type(config) {
 
                if (config.radius_das_client && config.radius_das_secret) {
                        set_default(config, 'radius_das_port', 3799);
-                       set_default(config, 'radius_das_client', `${config.radius_das_client} ${config.radius_das_secret}`);
+                       config.radius_das_client = config.radius_das_client + ' ' + config.radius_das_secret;
                }
 
                set_default(config, 'eapol_version', config.wpa & 1);