diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-01-21 01:43:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-01-21 01:43:32 +0000 |
commit | 02bf1599a3b87a41686bf1cb78d62fe71040b192 (patch) | |
tree | 6f22855403460ac626c9aef2fd165932b872110f /package/mac80211/patches/310-ath9k_pending_work.patch | |
parent | be39c9dc6e0c34292d10330c643b1fa903eb3cf7 (diff) | |
download | mtk-20170518-02bf1599a3b87a41686bf1cb78d62fe71040b192.zip mtk-20170518-02bf1599a3b87a41686bf1cb78d62fe71040b192.tar.gz mtk-20170518-02bf1599a3b87a41686bf1cb78d62fe71040b192.tar.bz2 |
ath9k: disable PA predistortion on AR93xx for now until it is properly fixed
SVN-Revision: 25056
Diffstat (limited to 'package/mac80211/patches/310-ath9k_pending_work.patch')
-rw-r--r-- | package/mac80211/patches/310-ath9k_pending_work.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/mac80211/patches/310-ath9k_pending_work.patch b/package/mac80211/patches/310-ath9k_pending_work.patch index 0a3372c..d0c2f39 100644 --- a/package/mac80211/patches/310-ath9k_pending_work.patch +++ b/package/mac80211/patches/310-ath9k_pending_work.patch @@ -88,3 +88,35 @@ } } +--- a/drivers/net/wireless/ath/ath9k/hw.c ++++ b/drivers/net/wireless/ath/ath9k/hw.c +@@ -369,6 +369,9 @@ static void ath9k_hw_init_config(struct + else + ah->config.ht_enable = 0; + ++ /* PAPRD needs some more work to be enabled */ ++ ah->config.paprd_disable = 1; ++ + ah->config.rx_intr_mitigation = true; + ah->config.pcieSerDesWrite = true; + +@@ -1949,7 +1952,8 @@ int ath9k_hw_fill_cap_info(struct ath_hw + pCap->rx_status_len = sizeof(struct ar9003_rxs); + pCap->tx_desc_len = sizeof(struct ar9003_txc); + pCap->txs_len = sizeof(struct ar9003_txs); +- if (ah->eep_ops->get_eeprom(ah, EEP_PAPRD)) ++ if (!ah->config.paprd_disable && ++ ah->eep_ops->get_eeprom(ah, EEP_PAPRD)) + pCap->hw_caps |= ATH9K_HW_CAP_PAPRD; + } else { + pCap->tx_desc_len = sizeof(struct ath_desc); +--- a/drivers/net/wireless/ath/ath9k/hw.h ++++ b/drivers/net/wireless/ath/ath9k/hw.h +@@ -228,6 +228,7 @@ struct ath9k_ops_config { + u32 pcie_waen; + u8 analog_shiftreg; + u8 ht_enable; ++ u8 paprd_disable; + u32 ofdm_trig_low; + u32 ofdm_trig_high; + u32 cck_trig_high; |