wlcore: queue recovery in case of bus errors during cmd_remove_peer
authorEyal Shapira <eyal@wizery.com>
Tue, 26 Jun 2012 07:41:16 +0000 (10:41 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 26 Jun 2012 17:30:37 +0000 (20:30 +0300)
commit6c15c1aae206dc275a948a5e50f965c2382c6866
treeb8209cb7028b3cbe58b85749d29f7ea867d0856b
parent7a50bdfb81a6bff96100cd2a2c95f8b3cf05bc0c
wlcore: queue recovery in case of bus errors during cmd_remove_peer

Following the addition of propagating errors from the bus ops
there's a need to distinguish between bus errors (including timeout)
and a legitimate timeout occuring in cmd_wait_for_event_or_timeout.
In case of real bus errors we need to queue recovery even in cases
where a timeout on a response from the FW to a command is acceptable.

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