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:
Felix Fietkau committed 2026-07-16 11:50:21 +02:00
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: [],