From eb5ccabf0edc0ed88b29c8d3cbea7effc3ecd285 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 10 Jul 2026 13:57:49 +0200 Subject: [PATCH] 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 --- .../network/config/wifi-scripts/files/lib/netifd/wireless.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/config/wifi-scripts/files/lib/netifd/wireless.uc b/package/network/config/wifi-scripts/files/lib/netifd/wireless.uc index fa2edbee12..41f48848e4 100644 --- a/package/network/config/wifi-scripts/files/lib/netifd/wireless.uc +++ b/package/network/config/wifi-scripts/files/lib/netifd/wireless.uc @@ -275,7 +275,7 @@ function config_init(uci) continue; dev = devices[radio] = { - name, + name: radio, config, vif: [],