mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-27 23:47:19 +01:00
wifi-scripts: fix wifi failure on specifying value of DAE client
Some checks failed
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Some checks failed
Build all core packages / Build all core packages for selected target (push) Has been cancelled
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>
This commit is contained in:
parent
bd1cf1b18a
commit
c7f585bfc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue