ath9k_htc: reboot firmware if it was loaded
authorOleksij Rempel <linux@rempel-privat.de>
Fri, 19 Jul 2013 18:16:18 +0000 (20:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:04:08 +0000 (16:04 -0400)
commit4928bd2ef8ece262f4f314630219999a91eaa440
tree2c8cfb63b2a2122288c30fb471658e3dfa3c8414
parentdc2a87f519a4d8cb376ab54f22b6b98a943b51ce
ath9k_htc: reboot firmware if it was loaded

Currently ath9k_htc will reboot firmware only if interface was
ever started. Which lead to the problem in case where interface
was never started but module need to be reloaded.

This patch will partially fix bug "ath9k_htc: Target is unresponsive"
https://github.com/qca/open-ath9k-htc-firmware/issues/1

Reproduction case:
- plug adapter
- make sure nothing will touch it. Stop Networkmanager or blacklist mac address of this adapter.
- rmmod ath9k_htc; sleep 1; modprobe ath9k_htc

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hif_usb.c