]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ath9k: Check if the STA supports HT when initializing rate control
authorSujith <Sujith.Manoharan@atheros.com>
Thu, 23 Oct 2008 06:45:19 +0000 (12:15 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 31 Oct 2008 23:00:55 +0000 (19:00 -0400)
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/rc.c

index 9ce535915a1a3bf400d6658ab901adb0e5517021..ecffd6f45fd013cac976e6becd8e22639464dfc8 100644 (file)
@@ -2026,7 +2026,7 @@ static void ath_rate_init(void *priv, struct ieee80211_supported_band *sband,
        DPRINTF(sc, ATH_DBG_RATE, "%s\n", __func__);
 
        ath_setup_rates(sc, sband, sta, ath_rc_priv);
-       if (sc->hw->conf.ht.enabled) {
+       if (sta->ht_cap.ht_supported) {
                for (i = 0; i < 77; i++) {
                        if (sta->ht_cap.mcs.rx_mask[i/8] & (1<<(i%8)))
                                ath_rc_priv->neg_ht_rates.rs_rates[j++] = i;