Skip to content

Commit

Permalink
ath9k: Check if the STA supports HT when initializing rate control
Browse files Browse the repository at this point in the history
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sujith authored and John W. Linville committed Oct 31, 2008
1 parent 075cbc9 commit a4510bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath9k/rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a4510bf

Please sign in to comment.