diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-11-10 19:27:19 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-11-10 19:27:19 +0000 |
commit | 085fe6bf4bb73124543b7720610582450a1bdc7b (patch) | |
tree | 67c498562236b5fcf9fec91196ba1a4122f0914d /package/mac80211/files/lib/wifi/mac80211.sh | |
parent | 5e3e6c8c0d8580f7d2c41cf1cfeb9a05665844ae (diff) | |
download | master-187ad058-085fe6bf4bb73124543b7720610582450a1bdc7b.tar.gz master-187ad058-085fe6bf4bb73124543b7720610582450a1bdc7b.tar.bz2 master-187ad058-085fe6bf4bb73124543b7720610582450a1bdc7b.zip |
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
Diffstat (limited to 'package/mac80211/files/lib/wifi/mac80211.sh')
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 5 |
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 |