wifi-scripts: fix undeclared variable in service wifi-device injection
The wifi-device injection path used object shorthand `name` where no such variable is in scope (the loop binds radio/config), so under the strict VM config_init threw and the whole wireless configuration for that reload was skipped. Use the radio key as the device name. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
06a7b0245f
commit
eb5ccabf0e
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ function config_init(uci)
|
|||
continue;
|
||||
|
||||
dev = devices[radio] = {
|
||||
name,
|
||||
name: radio,
|
||||
config,
|
||||
|
||||
vif: [],
|
||||
|
|
|
|||
Loading…
Reference in a new issue