]> git.karo-electronics.de Git - linux-beck.git/commit
mwifiex: fix driver unload problem for usb chipsets
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 23 Aug 2013 23:48:21 +0000 (16:48 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Aug 2013 18:09:04 +0000 (14:09 -0400)
commit027d3307f44c6ddccb2194474a18ff71cbff0ad9
tree27097b80126e41032cd4fa530afc03d51ecdd497
parent50023008f63c162bdb4b688c65d826bad627120e
mwifiex: fix driver unload problem for usb chipsets

We have usb_deregister() call in our rmmod routine. deauth,
shutdown etc. commands will be sent to FW later when bus
driver calls disconnect handler.

This mechanism works fine with SDIO and PCIe interfaces, but
there is an issue with USB.

USB bus driver returns all URBs submitted for receiving data
and command response immediately after usb_deregister() with
failure status. Hence we don't send deauth, shutdown etc.
command to firmware.

The problem is fixed by moving code from disconnect handler to
rmmod routine for USB interface.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/usb.c