aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-10-27 15:04:29 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-10-27 15:04:29 +0000
commit6b9d594eea83df46ac5a2763458a93e9953332e1 (patch)
treec78267551cf44eb35430355b41f206c8cc60a70e
parent69b86d8245d249e8ff0aca1f17bfa439dfbed0c4 (diff)
downloadupstream-6b9d594eea83df46ac5a2763458a93e9953332e1.tar.gz
upstream-6b9d594eea83df46ac5a2763458a93e9953332e1.tar.bz2
upstream-6b9d594eea83df46ac5a2763458a93e9953332e1.zip
mac80211: set GF flag in hostapd config if supported
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23673 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 2f8fedf24c..46c8c2af4c 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -425,6 +425,7 @@ detect_mac80211() {
list=" list ht_capab"
[ "$(($ht_cap & 1))" -eq 1 ] && append ht_capab "$list LDPC" "$N"
+ [ "$(($ht_cap & 16))" -eq 16 ] && append ht_capab "$list GF" "$N"
[ "$(($ht_cap & 32))" -eq 32 ] && append ht_capab "$list SHORT-GI-20" "$N"
[ "$(($ht_cap & 64))" -eq 64 ] && append ht_capab "$list SHORT-GI-40" "$N"
[ "$(($ht_cap & 128))" -eq 128 ] && append ht_capab "$list TX-STBC" "$N"