ath9k_htc: Handle device unplug properly
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 23 Apr 2010 04:58:10 +0000 (10:28 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Apr 2010 18:21:16 +0000 (14:21 -0400)
commita3be14b76da111ebe4d245b0542613f9317104e7
treefe3fcbd6ab1a6a4d4b4b9b89f071224ac351fe6e
parentc11d8f89d3b785f3ef987c2d9ee1bfea6f8b3d0f
ath9k_htc: Handle device unplug properly

When the USB device has been unplugged, there is
no point in trying to send commands to the target.
Fix this by denying all WMI commands in such a case.

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