mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 19:38:37 +04:00
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:
1 parent
06a7b0245f
commit
eb5ccabf0e
1 file changed
+1
-1
@@ -275,7 +275,7 @@ function config_init(uci)
|
||||
continue;
|
||||
|
||||
dev = devices[radio] = {
|
||||
name,
|
||||
name: radio,
|
||||
config,
|
||||
|
||||
vif: [],
|
||||
|
||||
Reference in new issue
Block a user