]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: Don't recover during boot
authorIdo Yariv <ido@wizery.com>
Wed, 15 Aug 2012 12:09:30 +0000 (15:09 +0300)
committerLuciano Coelho <luca@coelho.fi>
Thu, 27 Sep 2012 09:13:53 +0000 (12:13 +0300)
commit62f764a06d903351e73461f1309434648ab3d425
tree1cab60d86534dab47c9f0083e19c37dfae1d4ae1
parent73420ddaedaaa72fb8dd3fdf0b6cf0494d835b83
wlcore: Don't recover during boot

While recursive recovery is avoided during shutdown, a new recovery may
be queued when the FW boots. The recovery work will then try to stop an
already stopped hardware, which will most likely result in a kernel
panic.

Fix this by verifying that wl->state is on before queueing a new
recovery.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <luca@coelho.fi>
drivers/net/wireless/ti/wlcore/main.c