From: Felix Fietkau Date: Fri, 30 Jul 2010 19:02:11 +0000 (+0200) Subject: ath9k: fix a crash in the PA predistortion apply function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ddfef79257648e165ac49e6088d459819a02a882;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ath9k: fix a crash in the PA predistortion apply function When updating the PAPRD table in hardware, PAPRD itself needs to be disabled first, otherwise the hardware can throw a data bus error, which upsets at least some platforms. Signed-off-by: Felix Fietkau Acked-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 0429dda0961f..6c1d9ef550de 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -239,6 +239,7 @@ static void ath_paprd_activate(struct ath_softc *sc) return; ath9k_ps_wakeup(sc); + ar9003_paprd_enable(ah, false); for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { if (!(ah->caps.tx_chainmask & BIT(chain))) continue;