wlcore: force recovery on resume if suspended without recovering
authorArik Nemtsov <arik@wizery.com>
Thu, 21 Jun 2012 15:10:49 +0000 (18:10 +0300)
committerLuciano Coelho <coelho@ti.com>
Sat, 23 Jun 2012 06:32:31 +0000 (09:32 +0300)
commitea0a3cf95ed8839ce6f11bf9a050e6333bfc27d6
tree0875b9b16efc71867399521662eb208f9147844a
parent1d23396d9df0a9543b2ba5c288f4914ad1f19e46
wlcore: force recovery on resume if suspended without recovering

If an error is detected after mac80211 is already suspended, the recovery
work will not be queued. This will leave the driver in a bad state on
resume.

Detect this in the resume op and re-queue a recovery.

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