]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: resume() only if sta is associated
authorEliad Peller <eliad@wizery.com>
Wed, 1 Aug 2012 15:44:22 +0000 (18:44 +0300)
committerLuciano Coelho <luca@coelho.fi>
Thu, 27 Sep 2012 09:13:51 +0000 (12:13 +0300)
commit16878f5e16cb0faf0795cd67ad53da278c0f0982
treefb2109982596084ba2b164e95eb4e57e6c4ae1ac
parentd1a20e298cd7243a1e42c43da8575564d8d112e8
wlcore: resume() only if sta is associated

mac80211's resume() callback might get called even if
the sta is not associated (but only up). The
resume sequence in this case results in configuring
the wake-up conditions of a non-started role, which
causes fw assertion.

Fix it by bailing out if the STA is not connected
(like we do on suspend()).

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <luca@coelho.fi>
drivers/net/wireless/ti/wlcore/main.c