]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit922175c854ebf91c044af10d622e82252f6d5aed
tree4efb0581691096ff55c9c2bd1d19950ca79677b8
parent13f4965f90259ecddaaab8d4c26999f27e0f816a
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