X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/107bc81f4b4735a9d57cb9ac9e4e9d9b47e03c84..57967352ad441b719b9840f0ace0180393d03ef1:/package/hostapd/files/hostapd.sh diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 9d0fb6054..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 <> /var/run/hostapd-$ifname.conf <