json_select ..
}
+for_each_station() {
+ local _w_stas _w_sta
+
+ json_get_keys _w_stas stas
+ json_select stas
+ for _w_sta in $_w_stas; do
+ json_select "$_w_sta"
+ json_select config
+ "$@" "$_w_sta"
+ json_select ..
+ json_select ..
+ done
+ json_select ..
+}
+
_wdev_common_device_config() {
config_add_string channel hwmode htmode noscan
}
config_add_string name vid iface
}
+_wdev_common_station_config() {
+ config_add_string mac key vid iface
+}
+
init_wireless_driver() {
name="$1"; shift
cmd="$1"; shift
eval "drv_$1_init_vlan_config"
json_close_array
+ json_add_array station
+ _wdev_common_station_config
+ eval "drv_$1_init_station_config"
+ json_close_array
+
json_dump
}
;;