aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/wlcore_i.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-07-03 09:00:18 +0300
committerJohn W. Linville <linville@tuxdriver.com>2012-07-10 12:10:14 -0400
commit4455556d71951cfb6010e267efd00a52b63c2c20 (patch)
tree43215b3cbd2fa5a47316c8ca137a7546b49dd6c4 /drivers/net/wireless/ti/wlcore/wlcore_i.h
parentwlcore: change the wait for event mechanism (diff)
downloadlinux-dev-4455556d71951cfb6010e267efd00a52b63c2c20.tar.xz
linux-dev-4455556d71951cfb6010e267efd00a52b63c2c20.zip
wlcore: don't set SDIO_FAILED flag when driver state is off
If some IO read/write fails while the FW is not loaded, a recovery will not take place. This means the SDIO_FAILED flag will stay in place forever and prevent further read/writes. This can happen if a check for STATE_OFF was forgotten in some routine. Take this opportunity to rename the flag to IO_FAILED, since we support other buses as well. Reported-by: Ido Yariv <ido@wizery.com> Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/wireless/ti/wlcore/wlcore_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/wlcore_i.h b/drivers/net/wireless/ti/wlcore/wlcore_i.h
index a760407cb178..2a0e896b7d0c 100644
--- a/drivers/net/wireless/ti/wlcore/wlcore_i.h
+++ b/drivers/net/wireless/ti/wlcore/wlcore_i.h
@@ -238,7 +238,7 @@ enum wl12xx_flags {
WL1271_FLAG_RECOVERY_IN_PROGRESS,
WL1271_FLAG_VIF_CHANGE_IN_PROGRESS,
WL1271_FLAG_INTENDED_FW_RECOVERY,
- WL1271_FLAG_SDIO_FAILED,
+ WL1271_FLAG_IO_FAILED,
};
enum wl12xx_vif_flags {