diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-06-12 11:22:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-14 15:39:33 -0400 |
commit | 3553727cfa950ab472131b7688905e60154fdab1 (patch) | |
tree | c97b51424d3af118b093b6fc0ed66e64bb9ce0b0 /drivers | |
parent | 16f2411fcb76253c690e3420fbcf3f0208eeaa51 (diff) |
ath9k/ath9k_htc: remove redundand checks for dual-stream tx support
mac80211 already masks the HT sta capabilities based on hardware support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_main.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index c1d8fb8d4a93..b9206e412cab 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -362,11 +362,8 @@ static void ath9k_htc_setup_rate(struct ath9k_htc_priv *priv, | |||
362 | trate->rates.ht_rates.rs_nrates = j; | 362 | trate->rates.ht_rates.rs_nrates = j; |
363 | 363 | ||
364 | caps = WLAN_RC_HT_FLAG; | 364 | caps = WLAN_RC_HT_FLAG; |
365 | if (priv->ah->caps.tx_chainmask != 1 && | 365 | if (sta->ht_cap.mcs.rx_mask[1]) |
366 | ath9k_hw_getcapability(priv->ah, ATH9K_CAP_DS, 0, NULL)) { | 366 | caps |= WLAN_RC_DS_FLAG; |
367 | if (sta->ht_cap.mcs.rx_mask[1]) | ||
368 | caps |= WLAN_RC_DS_FLAG; | ||
369 | } | ||
370 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) | 367 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) |
371 | caps |= WLAN_RC_40_FLAG; | 368 | caps |= WLAN_RC_40_FLAG; |
372 | if (conf_is_ht40(&priv->hw->conf) && | 369 | if (conf_is_ht40(&priv->hw->conf) && |
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 02b605273ca5..600ee0ba2880 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -1203,11 +1203,8 @@ static u8 ath_rc_build_ht_caps(struct ath_softc *sc, struct ieee80211_sta *sta, | |||
1203 | 1203 | ||
1204 | if (sta->ht_cap.ht_supported) { | 1204 | if (sta->ht_cap.ht_supported) { |
1205 | caps = WLAN_RC_HT_FLAG; | 1205 | caps = WLAN_RC_HT_FLAG; |
1206 | if (sc->sc_ah->caps.tx_chainmask != 1 && | 1206 | if (sta->ht_cap.mcs.rx_mask[1]) |
1207 | ath9k_hw_getcapability(sc->sc_ah, ATH9K_CAP_DS, 0, NULL)) { | 1207 | caps |= WLAN_RC_DS_FLAG; |
1208 | if (sta->ht_cap.mcs.rx_mask[1]) | ||
1209 | caps |= WLAN_RC_DS_FLAG; | ||
1210 | } | ||
1211 | if (is_cw40) | 1208 | if (is_cw40) |
1212 | caps |= WLAN_RC_40_FLAG; | 1209 | caps |= WLAN_RC_40_FLAG; |
1213 | if (is_sgi) | 1210 | if (is_sgi) |