mac80211: set GF flag in hostapd config if supported
authorFelix Fietkau <nbd@openwrt.org>
Wed, 27 Oct 2010 15:04:29 +0000 (15:04 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 27 Oct 2010 15:04:29 +0000 (15:04 +0000)
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 23673

package/mac80211/files/lib/wifi/mac80211.sh

index 2f8fedf..46c8c2a 100644 (file)
@@ -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"