From: Felix Fietkau Date: Fri, 10 Jul 2026 11:57:49 +0000 (+0200) Subject: wifi-scripts: fix undeclared variable in service wifi-device injection X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb5ccabf0edc0ed88b29c8d3cbea7effc3ecd285;p=thirdparty%2Fopenwrt.git 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 --- 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 fa2edbee12d..41f48848e48 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: [],