aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/init.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-04-19 19:57:36 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-04-20 11:52:36 -0400
commit074a8c0db255e79960593122b5458c9a9c0551fa (patch)
tree7d1beb94abbca5fdd6b6e1c39e1d482be51cff5a /drivers/net/wireless/ath/ath9k/init.c
parentf79d9bad37cb1e7ef23d60b1dd0b7859957ced9e (diff)
downloadkernel_samsung_smdk4412-074a8c0db255e79960593122b5458c9a9c0551fa.zip
kernel_samsung_smdk4412-074a8c0db255e79960593122b5458c9a9c0551fa.tar.gz
kernel_samsung_smdk4412-074a8c0db255e79960593122b5458c9a9c0551fa.tar.bz2
ath9k: add support for Tx and Rx STBC
Supported only for single stream rates by the hardware Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index 351538c..70e5aa4 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -214,6 +214,12 @@ static void setup_ht_cap(struct ath_softc *sc,
else
max_streams = 2;
+ if (AR_SREV_9280_10_OR_LATER(ah)) {
+ if (max_streams >= 2)
+ ht_info->cap |= IEEE80211_HT_CAP_TX_STBC;
+ ht_info->cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT);
+ }
+
/* set up supported mcs set */
memset(&ht_info->mcs, 0, sizeof(ht_info->mcs));
tx_streams = count_streams(common->tx_chainmask, max_streams);