ath9k_htc: Fix target ready race condition
authorSujith.Manoharan@atheros.com <Sujith.Manoharan@atheros.com>
Tue, 11 May 2010 10:54:43 +0000 (16:24 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 12 May 2010 20:39:06 +0000 (16:39 -0400)
commitd8c49ffb2e2a47b23fec7f469435e7b112e2e569
treee10f7f1318597dd47982e2043355ff2d89173728
parent47fce026d5de5d11e161da73208171e9c91b659a
ath9k_htc: Fix target ready race condition

The ready message from the target could be processed
before the host HW init has completed. In this case,
htc_process_target_rdy() would assume the target has timed
out, when it hasn't. Fix this by checking if the target
has sent the ready message properly.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_init.c
drivers/net/wireless/ath/ath9k/htc_hst.c
drivers/net/wireless/ath/ath9k/htc_hst.h