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 2026-07-10 13:57:49 +02:00
parent 06a7b0245f
commit eb5ccabf0e

View file

@ -275,7 +275,7 @@ function config_init(uci)
continue;
dev = devices[radio] = {
name,
name: radio,
config,
vif: [],