diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-01-23 00:50:51 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:23 -0500 |
commit | f8206e053498174ef4b5f994e2a7091a74f7da30 (patch) | |
tree | 118d0a3c5f06f65880fd7e393031864f3ad01630 /drivers/net/wireless/ath9k/rc.c | |
parent | eb2599ca25be212bd37dd3e90ef13ea45758e838 (diff) |
ath9k: Fix bug in rate control capability registration
Dual stream capability must be registered only when the
hardware supports it.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/rc.c')
-rw-r--r-- | drivers/net/wireless/ath9k/rc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/rc.c b/drivers/net/wireless/ath9k/rc.c index 46172b5f492c..8e1528d487b5 100644 --- a/drivers/net/wireless/ath9k/rc.c +++ b/drivers/net/wireless/ath9k/rc.c | |||
@@ -1358,7 +1358,9 @@ static void ath_rc_init(struct ath_softc *sc, | |||
1358 | } | 1358 | } |
1359 | 1359 | ||
1360 | if (sta->ht_cap.ht_supported) { | 1360 | if (sta->ht_cap.ht_supported) { |
1361 | ath_rc_priv->ht_cap = (WLAN_RC_HT_FLAG | WLAN_RC_DS_FLAG); | 1361 | ath_rc_priv->ht_cap = WLAN_RC_HT_FLAG; |
1362 | if (sc->sc_tx_chainmask != 1) | ||
1363 | ath_rc_priv->ht_cap |= WLAN_RC_DS_FLAG; | ||
1362 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) | 1364 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) |
1363 | ath_rc_priv->ht_cap |= WLAN_RC_40_FLAG; | 1365 | ath_rc_priv->ht_cap |= WLAN_RC_40_FLAG; |
1364 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) | 1366 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) |