diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-04-19 19:57:36 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-20 11:52:36 -0400 |
commit | 074a8c0db255e79960593122b5458c9a9c0551fa (patch) | |
tree | 7d1beb94abbca5fdd6b6e1c39e1d482be51cff5a /drivers/net/wireless/ath/ath9k/init.c | |
parent | f79d9bad37cb1e7ef23d60b1dd0b7859957ced9e (diff) | |
download | kernel_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.c | 6 |
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); |