append $mode "$vif"
;;
wds)
- config_get addr "$vif" bssid
config_get ssid "$vif" ssid
- [ -z "$addr" -a -n "$ssid" ] && {
- config_set "$vif" wds 1
- config_set "$vif" mode sta
- mode="sta"
- addr="$ssid"
- }
+ [ -z "$ssid" ] && continue
+
+ config_set "$vif" wds 1
+ config_set "$vif" mode sta
+ mode="sta"
+ addr="$ssid"
${addr:+append $mode "$vif"}
;;
*) echo "$device($vif): Invalid mode, ignored."; continue;;
esac
case "$mode" in
- wds)
- config_get addr "$vif" bssid
- iwpriv "$ifname" wds_add "$addr"
- ;;
adhoc|ahdemo)
config_get addr "$vif" bssid
[ -z "$addr" ] || {