]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: fix undeclared variable in service wifi-device injection
authorFelix Fietkau <nbd@nbd.name>
Fri, 10 Jul 2026 11:57:49 +0000 (13:57 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Jul 2026 09:50:21 +0000 (11:50 +0200)
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>
package/network/config/wifi-scripts/files/lib/netifd/wireless.uc

index fa2edbee12d4e6a17e08b2fcf7dcce81afb15183..41f48848e48ece61ee29d7d9bef7df33541e039d 100644 (file)
@@ -275,7 +275,7 @@ function config_init(uci)
                                                continue;
 
                                        dev = devices[radio] = {
-                                               name,
+                                               name: radio,
                                                config,
 
                                                vif: [],