[openwrt/openwrt] wifi-scripts: move the "disabled" option to the wifi-iface section
LEDE Commits
lede-commits at lists.infradead.org
Mon Feb 16 00:21:12 PST 2026
nbd pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/43059114994f4ce2bdf38f041ca1700a9c669bb8
commit 43059114994f4ce2bdf38f041ca1700a9c669bb8
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Jan 6 18:46:46 2026 +0100
wifi-scripts: move the "disabled" option to the wifi-iface section
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 at nbd.name>
(cherry picked from commit 79a0aebd81687868374e98d9987c256722c6a4f8)
---
package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc b/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc
index 45e7adf4a7..0156906725 100644
--- a/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc
+++ b/package/network/config/wifi-scripts/files/lib/wifi/mac80211.uc
@@ -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] = {};
More information about the lede-commits
mailing list