X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/586c0c90e8d1c6f4bd02f5d689346a0ed375cc4c..c1b82fcecbc9805d48d667905fdd6a77599d3af6:/package/hostapd/files/hostapd.sh?ds=sidebyside diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 0db5e0648..740155725 100644 --- a/package/hostapd/files/hostapd.sh +++ b/package/hostapd/files/hostapd.sh @@ -77,7 +77,10 @@ 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 hidden "$vif" hidden 0 + 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 @@ -89,6 +92,9 @@ hostapd_setup_vif() { [ -n "$hwmode_11n" ] && { hwmode="$hwmode_11n" config_get ht_capab "$device" ht_capab + [ -n "$ht_capab" -a -n "${ht_capab%%\[*}" ] && { + ht_capab=`echo "[$ht_capab]" | sed -e 's, ,][,g'` + } } } cat > /var/run/hostapd-$ifname.conf <> /var/run/hostapd-$ifname.conf <