]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae220d8cc58c884880f3d06e299a38ea309b28a8
tree1b39489085cc55c0276a29c8eb58ecd39e974b93
parent9469413c43f21814463e200002aabf4150d3f095
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