aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-04-19 13:57:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-20 11:52:39 -0400
commit58b5190e740241b33fcd901855436aa5d0c5e087 (patch)
tree09960c0bec88b28c70d569fdf16223ddf6810761 /drivers/net
parent074a8c0db255e79960593122b5458c9a9c0551fa (diff)
ath9k: set the STBC flag in rate control if the peer supports it
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath9k/rc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c
index f10bd06dc218..66bc1f6c8ccf 100644
--- a/drivers/net/wireless/ath/ath9k/rc.c
+++ b/drivers/net/wireless/ath/ath9k/rc.c
@@ -698,6 +698,10 @@ static void ath_get_rate(void *priv, struct ieee80211_sta *sta, void *priv_sta,
698 (sta->ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING)) 698 (sta->ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING))
699 tx_info->flags |= IEEE80211_TX_CTL_LDPC; 699 tx_info->flags |= IEEE80211_TX_CTL_LDPC;
700 700
701 if (conf_is_ht(&sc->hw->conf) &&
702 (sta->ht_cap.cap & IEEE80211_HT_CAP_TX_STBC))
703 tx_info->flags |= (1 << IEEE80211_TX_CTL_STBC_SHIFT);
704
701 if (is_probe) { 705 if (is_probe) {
702 /* set one try for probe rates. For the 706 /* set one try for probe rates. For the
703 * probes don't enable rts */ 707 * probes don't enable rts */