From 3b3a36db385168971075d15fbf76a27920a7b888 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 10 Nov 2009 19:27:19 +0000 Subject: mac80211: implement wds sta support (wds ap support work in progress, needs hostapd changes) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18356 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mac80211/files/lib/wifi/mac80211.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package/mac80211/files') diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index ccd4d2c38..027749e57 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 -- cgit v1.2.3