b43: only reload config after successful initialization
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 25 Apr 2012 22:28:00 +0000 (17:28 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Apr 2012 19:25:25 +0000 (15:25 -0400)
commitdbdedbdf4fbff3d4962a0786f37aa86dfdc48a7e
treeb2816c0c7140b19d89500608170e69b4d13c82a6
parent1ed2ec37b44e86eaa8e0a03b908a39c80f65ee45
b43: only reload config after successful initialization

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/main.c