projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mac80211: fill some important capabilities into ht_capab in the hostapd config
[openwrt-10.03/.git]
/
package
/
hostapd
/
files
/
hostapd.sh
diff --git
a/package/hostapd/files/hostapd.sh
b/package/hostapd/files/hostapd.sh
index 0db5e0648bd63b6fe9520302cfd20ad147391d7e..2210a46aff82f4f725d7b1595657791625d30fb0 100644
(file)
--- 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