wlcore: allow fw commands to fail
authorEliad Peller <eliad@wizery.com>
Tue, 27 Nov 2012 06:44:45 +0000 (08:44 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 4 Dec 2012 15:05:52 +0000 (17:05 +0200)
commitea5084356fb05093da9ff225fd2c2fcfd363371c
treea3b9d1eef91348fabd015ab1894ec30e8961aa3c
parentd88949b7def1e982871406f3ad3efa361ffa6ffc
wlcore: allow fw commands to fail

Currently, each fw command/acx that return a status code
different than CMD_STATUS_SUCCESS will trigger a recovery
in the driver.

However, it is a valid for some fw commands to fail (e.g.
due to temporary lack of resources), so add new functions
that allow passing bitmap of valid error return values.

(make the current wl1271_cmd_send/wl1271_cmd_configure
wrappers around the new functions, in order to avoid
changing the whole driver)

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