diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-08-27 19:00:07 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-09-05 22:53:32 +0400 |
commit | 51dea9be7e01d7e825ed1882246693f09c21374c (patch) | |
tree | 1b39489085cc55c0276a29c8eb58ecd39e974b93 /drivers/net/wireless/ath/ath9k/hw.h | |
parent | 1630d25fd00f195f0923d4b895e0529fdbba83c3 (diff) | |
download | linux-51dea9be7e01d7e825ed1882246693f09c21374c.tar.xz |
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/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index ce7332c64efb..6599a75f01fe 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -405,6 +405,7 @@ struct ath9k_hw_cal_data { int8_t iCoff; int8_t qCoff; bool rtt_done; + bool paprd_packet_sent; bool paprd_done; bool nfcal_pending; bool nfcal_interference; |