From: Felix Fietkau Date: Fri, 1 Aug 2008 00:26:44 +0000 (+0000) Subject: madwifi: remove wds type of wifi-iface without essid, imho it never worked properly... X-Git-Tag: reboot~25934 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1201ed1baaf90f5dcd0a13a6264649f05a5d27d5;p=oweals%2Fopenwrt.git madwifi: remove wds type of wifi-iface without essid, imho it never worked properly and is unsupported now, regular ap/sta with option wds 1 is preferred SVN-Revision: 12055 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index be4cad0b70..010391e35a 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -18,14 +18,13 @@ scan_atheros() { 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;; @@ -150,10 +149,6 @@ enable_atheros() { esac case "$mode" in - wds) - config_get addr "$vif" bssid - iwpriv "$ifname" wds_add "$addr" - ;; adhoc|ahdemo) config_get addr "$vif" bssid [ -z "$addr" ] || {