b43: only reload config after successful initialization
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 25 Apr 2012 22:28:00 +0000 (17:28 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:52 +0000 (13:14 +0100)
commit3123627c1824ab82fd08001c145d595d42f67def
tree7bc2b7b5db4a1ed04478884c567596cc025a432b
parent9846235aec215c33af3ed3758b67e31ff6981089
b43: only reload config after successful initialization

commit dbdedbdf4fbff3d4962a0786f37aa86dfdc48a7e upstream.

Commit 2a19032 (b43: reload phy and bss settings after core restarts)
introduced an unconditional call to b43_op_config() at the end of
b43_op_start(). When firmware fails to load this can wedge the system.
There's no need to reload the configuration after a failed
initialization anyway, so only make the call if initialization was
successful.

BugLink: http://bugs.launchpad.net/bugs/950295
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/b43/main.c