aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-04 21:53:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-04 21:53:49 +0000
commit2f8e54f6735724516c2a2b1c736a7202b6ea96af (patch)
tree238413bade28487194412c7890b678d81b05e41d /package/hostapd/files
parenta8b204bd78de35f98f6f00e5d460e008db2b8a56 (diff)
downloadupstream-2f8e54f6735724516c2a2b1c736a7202b6ea96af.tar.gz
upstream-2f8e54f6735724516c2a2b1c736a7202b6ea96af.tar.bz2
upstream-2f8e54f6735724516c2a2b1c736a7202b6ea96af.zip
mac80211: fill some important capabilities into ht_capab in the hostapd config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18293 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 0db5e0648b..2210a46aff 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -89,6 +89,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 <<EOF