aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-01 00:26:44 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-01 00:26:44 +0000
commit4c49d9496baad1fa55aa5dc31976b97de553cebb (patch)
treef2256b082172530ba3f28432b6114f33af0e4272 /package/madwifi/files
parentc1d54dc961ded7c80ce833291bf2af2e8d0bcad0 (diff)
downloadupstream-4c49d9496baad1fa55aa5dc31976b97de553cebb.tar.gz
upstream-4c49d9496baad1fa55aa5dc31976b97de553cebb.tar.bz2
upstream-4c49d9496baad1fa55aa5dc31976b97de553cebb.zip
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12055 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh17
1 files changed, 6 insertions, 11 deletions
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" ] || {