config_get vifs "$device" vifs
local _c=0
for vif in $vifs; do
+ config_get_bool disabled "$vif" disabled 0
+ [ $disabled = 0 ] || continue
+
config_get mode "$vif" mode
case "$mode" in
adhoc|sta|ap|monitor)
config_get ssid "$vif" ssid
config_get mode "$vif" mode
- [ "$mode" = "wds" ] || iwconfig "$phy" essid -- "$ssid"
+ [ "$mode" = "wds" ] || iwconfig "$phy" essid ${ssid:+-- }"${ssid:-any}"
case "$mode" in
sta)
config_foreach check_prism2_device wifi-device
[ "$found" -gt 0 ] && continue
cat <<EOF
-
config wifi-device radio$devidx
option type prism2
option channel 11