dect
/
linux-2.6
Archived
13
0
Fork 0

ath9k: Check if the STA supports HT when initializing rate control

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Sujith 2008-10-23 12:15:19 +05:30 committed by John W. Linville
parent 075cbc9eb1
commit a4510bf8d9
1 changed files with 1 additions and 1 deletions

View 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;