From 244e2944c6b2f4efaf7d4375951ae2cf503823cd Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 4 Nov 2009 21:53:49 +0000 Subject: 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 --- package/hostapd/files/hostapd.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/hostapd/files') diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 0db5e0648..2210a46af 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 <