ath9k: Update short guard interval in rate control
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 16 Jan 2009 16:08:40 +0000 (21:38 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:00:39 +0000 (16:00 -0500)
The rate control algorithm needs to know if a STA allows
short guard interval, fixing this allows RC to use the correct
table.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/rc.c

index 182884a1cde4021ac00446689f78ccaf8120e5fd..68bda2309ceebbca8f923362ac78d6af2d44a830 100644 (file)
@@ -1361,6 +1361,8 @@ static void ath_rc_init(struct ath_softc *sc,
                ath_rc_priv->ht_cap = (WLAN_RC_HT_FLAG | WLAN_RC_DS_FLAG);
                if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)
                        ath_rc_priv->ht_cap |= WLAN_RC_40_FLAG;
+               if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40)
+                       ath_rc_priv->ht_cap |= WLAN_RC_SGI_FLAG;
        }
 
        /* Initial rate table size. Will change depending