ath9k_htc: do some initial hardware configuration
authorOleksij Rempel <linux@rempel-privat.de>
Fri, 19 Jul 2013 18:16:17 +0000 (20:16 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Sep 2013 00:57:12 +0000 (01:57 +0100)
commitcab200d2837cf98d293c06c5bbcefd5ae2df7c66
tree42aa5c55c5bfc2ba595819426d036abbaf15a421
parent5e61ced05ec882f0f1ab68149fa0964bf3bf8fa9
ath9k_htc: do some initial hardware configuration

commit dc2a87f519a4d8cb376ab54f22b6b98a943b51ce upstream.

Currently we configure harwdare and clock, only after
interface start. In this case, if we reload module or
reboot PC without configuring adapter, firmware will freeze.
There is no software way to reset adpter.

This patch add initial configuration and set it in
disabled state, to avoid this freeze. Behaviour of this patch
should be similar to: ifconfig wlan0 up; ifconfig wlan0 down.

Bug: https://github.com/qca/open-ath9k-htc-firmware/issues/1
Tested-by: Bo Shi <cnshibo@gmail.com>
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/ath/ath9k/htc_drv_init.c