summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2024-11-08 08:13:54 +0000
committerFelix Fietkau2024-11-08 09:51:00 +0000
commita3ec35cadb77265c0e00c8d3789734586a6f7111 (patch)
tree49c68ac4ffb5b0c822a1ccadb8bdb76fd823a6af
parent0a7b7ef27cfc00521a0f99de073a7168f1b79e8f (diff)
downloadopenwrt-a3ec35cadb77265c0e00c8d3789734586a6f7111.tar.gz
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@nbd.name>
-rw-r--r--package/network/config/wifi-scripts/files/lib/netifd/netifd-wireless.sh1
1 files changed, 1 insertions, 0 deletions
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() {