summaryrefslogtreecommitdiff
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-11 05:15:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-11 05:15:51 +0000
commit36eccaad210a4b1df56c7f5d8f5548170af19d1e (patch)
treea4e4aace5084079c1ac5825bbfad17982ba50d3a /package/hostapd/files
parent20107c752ee937a7fbe365367e22f10679657c87 (diff)
downloadmtk-20170518-36eccaad210a4b1df56c7f5d8f5548170af19d1e.zip
mtk-20170518-36eccaad210a4b1df56c7f5d8f5548170af19d1e.tar.gz
mtk-20170518-36eccaad210a4b1df56c7f5d8f5548170af19d1e.tar.bz2
hostapd: implement wds ap support
SVN-Revision: 18364
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 2210a46..4a13c19 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -77,7 +77,9 @@ hostapd_setup_vif() {
config_get channel "$device" channel
config_get hwmode "$device" hwmode
config_get wpa_group_rekey "$vif" wpa_group_rekey
- config_get ieee80211d "$vif" ieee80211d
+ config_get ieee80211d "$vif" ieee80211d
+ config_get_bool wds "$vif" wds 0
+ [ "$wds" -gt 0 -a "$driver" = "nl80211" ] && wds="wds_sta=1" || wds=""
case "$hwmode" in
bg) hwmode=g;;
esac
@@ -109,6 +111,7 @@ ${hwmode_11n:+ieee80211n=1}
${ht_capab:+ht_capab=$ht_capab}
${wpa_group_rekey:+wpa_group_rekey=$wpa_group_rekey}
${ieee80211d:+ieee80211d=$ieee80211d}
+$wds
$hostapd_cfg
EOF
case "$driver" in