aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/files/lib/wifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-10 19:27:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-10 19:27:19 +0000
commit1dbcfdaf2f52ee208a7ee88f09f0642dbdb6c882 (patch)
tree3dc55260442d6f3e80ce0357562795959e114d9f /package/mac80211/files/lib/wifi
parent559f32adbc9e4038f21f9a1254865e264ac94367 (diff)
downloadupstream-1dbcfdaf2f52ee208a7ee88f09f0642dbdb6c882.tar.gz
upstream-1dbcfdaf2f52ee208a7ee88f09f0642dbdb6c882.tar.bz2
upstream-1dbcfdaf2f52ee208a7ee88f09f0642dbdb6c882.zip
mac80211: implement wds sta support (wds ap support work in progress, needs hostapd changes)
SVN-Revision: 18356
Diffstat (limited to 'package/mac80211/files/lib/wifi')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index ccd4d2c389..027749e578 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -104,6 +104,7 @@ enable_mac80211() {
config_get enc "$vif" encryption
config_get mode "$vif" mode
config_get ssid "$vif" ssid
+ config_get_bool wds "$vif" wds 0
# It is far easier to delete and create the desired interface
case "$mode" in
@@ -123,7 +124,9 @@ enable_mac80211() {
iw phy "$phy" interface add "$ifname" type monitor
;;
sta)
- iw phy "$phy" interface add "$ifname" type managed
+ local wdsflag
+ [ "$wds" -gt 0 ] && wdsflag="wds on"
+ iw phy "$phy" interface add "$ifname" type managed $wdsflag
;;
esac