ath9k: Check early for HW reset
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 30 Sep 2014 08:45:23 +0000 (14:15 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 30 Sep 2014 17:17:48 +0000 (13:17 -0400)
commit4d9f634b02e4240f86719f30e4c9e62f6a4c4d36
treeebb24bcd1fe800477529e004de8928fd361a2814
parent4eb3af7c1df32dcd4362c2f20928f679ed78f2e5
ath9k: Check early for HW reset

chan_lock is not required for checking if
we are in the middle of a HW reset, so do it
early. This also removes the small window
where the lock is dropped and reacquired.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/xmit.c