ath9k: fix PA linearization calibration related crash
authorFelix Fietkau <nbd@openwrt.org>
Mon, 27 Aug 2012 15:00:07 +0000 (17:00 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 5 Sep 2012 18:53:32 +0000 (14:53 -0400)
commit51dea9be7e01d7e825ed1882246693f09c21374c
tree1b39489085cc55c0276a29c8eb58ecd39e974b93
parent1630d25fd00f195f0923d4b895e0529fdbba83c3
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>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/link.c
drivers/net/wireless/ath/ath9k/xmit.c