From: Felix Fietkau Date: Wed, 4 Nov 2009 21:53:49 +0000 (+0000) Subject: mac80211: fill some important capabilities into ht_capab in the hostapd config X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=c63d2c34219fca040ff192c60df0ca9b920250b5 mac80211: fill some important capabilities into ht_capab in the hostapd config SVN-Revision: 18293 --- 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 <