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 | 1dbcfdaf2f52ee208a7ee88f09f0642dbdb6c882 (patch) | |
tree | 3dc55260442d6f3e80ce0357562795959e114d9f /package/mac80211/files/lib/wifi | |
parent | 559f32adbc9e4038f21f9a1254865e264ac94367 (diff) | |
download | upstream-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.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 |