From: Sujith Date: Thu, 23 Oct 2008 06:45:19 +0000 (+0530) Subject: ath9k: Check if the STA supports HT when initializing rate control X-Git-Tag: v2.6.29-rc1~581^2~832 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4510bf8d96698496d7d2bb242917b4bbfa9bf28;p=profile%2Fivi%2Fkernel-x86-ivi.git ath9k: Check if the STA supports HT when initializing rate control Signed-off-by: Sujith Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath9k/rc.c b/drivers/net/wireless/ath9k/rc.c index 9ce5359..ecffd6f 100644 --- a/drivers/net/wireless/ath9k/rc.c +++ b/drivers/net/wireless/ath9k/rc.c @@ -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;