[openwrt/openwrt] wifi-scripts: add free-form "tags" array option for wifi-iface
LEDE Commits
lede-commits at lists.infradead.org
Thu Nov 14 13:43:39 PST 2024
nbd pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/c02af3fd857e567a1dfae8d029eed461442b0dce
commit c02af3fd857e567a1dfae8d029eed461442b0dce
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Nov 8 09:13:54 2024 +0100
wifi-scripts: add free-form "tags" array option for wifi-iface
This allows annotating wifi interfaces in the config in a way that can be
queried through wifi status. One example use case is to mark wifi interfaces
for use with specific services without having to explicitly reference the
(often unnamed) sections from elsewhere.
Signed-off-by: Felix Fietkau <nbd at nbd.name>
(cherry picked from commit a3ec35cadb77265c0e00c8d3789734586a6f7111)
---
package/network/config/wifi-scripts/files/lib/netifd/netifd-wireless.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/network/config/wifi-scripts/files/lib/netifd/netifd-wireless.sh b/package/network/config/wifi-scripts/files/lib/netifd/netifd-wireless.sh
index 5b852e0937..c3772bb443 100644
--- a/package/network/config/wifi-scripts/files/lib/netifd/netifd-wireless.sh
+++ b/package/network/config/wifi-scripts/files/lib/netifd/netifd-wireless.sh
@@ -379,6 +379,7 @@ _wdev_common_device_config() {
_wdev_common_iface_config() {
config_add_string mode ssid encryption 'key:wpakey'
config_add_boolean bridge_isolate
+ config_add_array tags
}
_wdev_common_vlan_config() {
More information about the lede-commits
mailing list