Skip to content

Commit 79a0aeb

Browse files
committed
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@nbd.name>
1 parent 12d4755 commit 79a0aeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • package/network/config/wifi-scripts/files/lib/wifi

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ set ${s}.channel='${channel}'
104104
set ${s}.htmode='${htmode}'
105105
set ${s}.country='${country || ''}'
106106
set ${s}.num_global_macaddr='${num_global_macaddr || ''}'
107-
set ${s}.disabled='${defaults ? 0 : 1}'
108107

109108
set ${si}=wifi-iface
110109
set ${si}.device='${name}'
@@ -113,6 +112,7 @@ set ${si}.mode='ap'
113112
set ${si}.ssid='${defaults?.ssid || "OpenWrt"}'
114113
set ${si}.encryption='${defaults?.encryption || encryption}'
115114
set ${si}.key='${defaults?.key || ""}'
115+
set ${si}.disabled='${defaults ? 0 : 1}'
116116

117117
`);
118118
config[name] = {};

0 commit comments

Comments
 (0)