ath9k: Fix TX poll cancelling
authorSujith <Sujith.Manoharan@atheros.com>
Tue, 18 Aug 2009 05:21:52 +0000 (10:51 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Aug 2009 15:36:03 +0000 (11:36 -0400)
commit4c48381786159ba3f3d8a33d967aeb049341a220
tree4f746f31c80989412d39fcad7a9d631db25aa916
parentbcd64e0c20eafe6a3976c248833d5d8bcccdf0d9
ath9k: Fix TX poll cancelling

In ath9k_stop(), tx_complete_work was being cancelled twice.
This patch fixes it. Also, locking sc->mutex should be done
at the beginning.

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