summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/565-ath9k_fix_txgain.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-16 23:50:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-07-16 23:50:54 +0000
commitcf9bca8dedb00b41c42a994ae08b91c37d11895c (patch)
tree70272e7b9e0d26608ba3e5805ab01855a9717ac7 /package/mac80211/patches/565-ath9k_fix_txgain.patch
parent84585b45d6ab5a71a805e45df889b01217950484 (diff)
downloadmtk-20170518-cf9bca8dedb00b41c42a994ae08b91c37d11895c.zip
mtk-20170518-cf9bca8dedb00b41c42a994ae08b91c37d11895c.tar.gz
mtk-20170518-cf9bca8dedb00b41c42a994ae08b91c37d11895c.tar.bz2
mac80211: update to latest wireless-testing + some monitor mode fixes and some libertas driver fixes
SVN-Revision: 32760
Diffstat (limited to 'package/mac80211/patches/565-ath9k_fix_txgain.patch')
-rw-r--r--package/mac80211/patches/565-ath9k_fix_txgain.patch66
1 files changed, 0 insertions, 66 deletions
diff --git a/package/mac80211/patches/565-ath9k_fix_txgain.patch b/package/mac80211/patches/565-ath9k_fix_txgain.patch
deleted file mode 100644
index c2f54d6..0000000
--- a/package/mac80211/patches/565-ath9k_fix_txgain.patch
+++ /dev/null
@@ -1,66 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/ar9003_hw.c
-+++ b/drivers/net/wireless/ath/ath9k/ar9003_hw.c
-@@ -561,8 +561,8 @@ static void ar9003_tx_gain_table_mode1(s
- 5);
- else if (AR_SREV_9340(ah))
- INIT_INI_ARRAY(&ah->iniModesTxGain,
-- ar9340Modes_lowest_ob_db_tx_gain_table_1p0,
-- ARRAY_SIZE(ar9340Modes_lowest_ob_db_tx_gain_table_1p0),
-+ ar9340Modes_high_ob_db_tx_gain_table_1p0,
-+ ARRAY_SIZE(ar9340Modes_high_ob_db_tx_gain_table_1p0),
- 5);
- else if (AR_SREV_9485_11(ah))
- INIT_INI_ARRAY(&ah->iniModesTxGain,
-@@ -605,8 +605,8 @@ static void ar9003_tx_gain_table_mode2(s
- 5);
- else if (AR_SREV_9340(ah))
- INIT_INI_ARRAY(&ah->iniModesTxGain,
-- ar9340Modes_lowest_ob_db_tx_gain_table_1p0,
-- ARRAY_SIZE(ar9340Modes_lowest_ob_db_tx_gain_table_1p0),
-+ ar9340Modes_low_ob_db_tx_gain_table_1p0,
-+ ARRAY_SIZE(ar9340Modes_low_ob_db_tx_gain_table_1p0),
- 5);
- else if (AR_SREV_9485_11(ah))
- INIT_INI_ARRAY(&ah->iniModesTxGain,
-@@ -639,8 +639,8 @@ static void ar9003_tx_gain_table_mode3(s
- 5);
- else if (AR_SREV_9340(ah))
- INIT_INI_ARRAY(&ah->iniModesTxGain,
-- ar9340Modes_lowest_ob_db_tx_gain_table_1p0,
-- ARRAY_SIZE(ar9340Modes_lowest_ob_db_tx_gain_table_1p0),
-+ ar9340Modes_high_power_tx_gain_table_1p0,
-+ ARRAY_SIZE(ar9340Modes_high_power_tx_gain_table_1p0),
- 5);
- else if (AR_SREV_9485_11(ah))
- INIT_INI_ARRAY(&ah->iniModesTxGain,
-@@ -659,6 +659,20 @@ static void ar9003_tx_gain_table_mode3(s
- 5);
- }
-
-+static void ar9003_tx_gain_table_mode4(struct ath_hw *ah)
-+{
-+ if (AR_SREV_9340(ah))
-+ INIT_INI_ARRAY(&ah->iniModesTxGain,
-+ ar9340Modes_mixed_ob_db_tx_gain_table_1p0,
-+ ARRAY_SIZE(ar9340Modes_mixed_ob_db_tx_gain_table_1p0),
-+ 5);
-+ else if (AR_SREV_9580(ah))
-+ INIT_INI_ARRAY(&ah->iniModesTxGain,
-+ ar9580_1p0_mixed_ob_db_tx_gain_table,
-+ ARRAY_SIZE(ar9580_1p0_mixed_ob_db_tx_gain_table),
-+ 5);
-+}
-+
- static void ar9003_tx_gain_table_apply(struct ath_hw *ah)
- {
- switch (ar9003_hw_get_tx_gain_idx(ah)) {
-@@ -675,6 +689,9 @@ static void ar9003_tx_gain_table_apply(s
- case 3:
- ar9003_tx_gain_table_mode3(ah);
- break;
-+ case 4:
-+ ar9003_tx_gain_table_mode4(ah);
-+ break;
- }
- }
-