ath9k_htc: Really fix device hotunplug
authorSujith <Sujith.Manoharan@atheros.com>
Fri, 23 Apr 2010 04:58:20 +0000 (10:28 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Apr 2010 18:21:22 +0000 (14:21 -0400)
commitd8f996f6ff7e6eab4c7b96e908ba789533595e7d
tree4efb0581691096ff55c9c2bd1d19950ca79677b8
parent0d36d71da2a3e5b28b4e7743c0041515cca798ef
ath9k_htc: Really fix device hotunplug

All commands to the target are disabled when the device
is unplugged, but a normal module unload has to be
differentiated from this case, as we could still receive
data in the RX endpoint. Fix this by checking if the
device is attached or not.

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