diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-08-27 17:00:07 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-05 14:53:32 -0400 |
commit | 51dea9be7e01d7e825ed1882246693f09c21374c (patch) | |
tree | 1b39489085cc55c0276a29c8eb58ecd39e974b93 /drivers/net/wireless/ath/ath9k/xmit.c | |
parent | 1630d25fd00f195f0923d4b895e0529fdbba83c3 (diff) | |
download | linux-51dea9be7e01d7e825ed1882246693f09c21374c.tar.gz linux-51dea9be7e01d7e825ed1882246693f09c21374c.tar.bz2 linux-51dea9be7e01d7e825ed1882246693f09c21374c.zip |
ath9k: fix PA linearization calibration related crash
Before PAPRD training can run, the card needs to have sent a packet for
thermal calibration. Sending a dummy packet with the PAPRD training flag
set causes a crash under some circumstance.
Fix the code by replacing the dummy tx with a delay that waits for a
real packet tx to have occurred.
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/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 2c9da6b2ecb1..0d4155aec48d 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c @@ -2018,6 +2018,9 @@ static void ath_tx_complete(struct ath_softc *sc, struct sk_buff *skb, ath_dbg(common, XMIT, "TX complete: skb: %p\n", skb); + if (sc->sc_ah->caldata) + sc->sc_ah->caldata->paprd_packet_sent = true; + if (!(tx_flags & ATH_TX_ERROR)) /* Frame was ACKed */ tx_info->flags |= IEEE80211_TX_STAT_ACK; |