]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: move the "disabled" option to the wifi-iface section
authorFelix Fietkau <nbd@nbd.name>
Tue, 6 Jan 2026 17:46:46 +0000 (18:46 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 16 Feb 2026 08:20:29 +0000 (08:20 +0000)
This helps for setups where the wifi interfaces are added dynamically
via procd data by avoiding automatically bringing up interfaces with
the default config. Internally, they are treated pretty much the same
by netifd.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 79a0aebd81687868374e98d9987c256722c6a4f8)

package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc

index 45e7adf4a73763af51ad2626a22389a270deb216..0156906725567f2453a54b90a2dc9a5e6ded79ee 100644 (file)
@@ -104,7 +104,6 @@ set ${s}.channel='${channel}'
 set ${s}.htmode='${htmode}'
 set ${s}.country='${country || ''}'
 set ${s}.num_global_macaddr='${num_global_macaddr || ''}'
-set ${s}.disabled='${defaults ? 0 : 1}'
 
 set ${si}=wifi-iface
 set ${si}.device='${name}'
@@ -113,6 +112,7 @@ set ${si}.mode='ap'
 set ${si}.ssid='${defaults?.ssid || "OpenWrt"}'
 set ${si}.encryption='${defaults?.encryption || encryption}'
 set ${si}.key='${defaults?.key || ""}'
+set ${si}.disabled='${defaults ? 0 : 1}'
 
 `);
                config[name] = {};