diff options
author | Luciano Coelho <coelho@ti.com> | 2012-02-28 19:13:28 +0200 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-06-21 12:44:17 +0300 |
commit | 26b5858a67e4316ecd8159e2c0dc5591ef68226a (patch) | |
tree | 8e18985fc0760067ccc0b93f2102edc552893210 /drivers/net/wireless/ti/wlcore/acx.c | |
parent | c954910bc4501447cc647d5fca5bd0d9439e177d (diff) |
wlcore: add a debugfs entry to allow changing the sleep mode by hand
For FW debugging purposes, we may need to change the sleep mode
(aka. sleep_auth) by hand, and set it to the mode we want. To allow
this, a debugfs entry is added.
Now we store the sleep_auth value that has been set and use that
instead of the quirk to decide whether we should enter ELP or not.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/acx.c')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/acx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/acx.c b/drivers/net/wireless/ti/wlcore/acx.c index b9ec42c83757..b56217f9bfd4 100644 --- a/drivers/net/wireless/ti/wlcore/acx.c +++ b/drivers/net/wireless/ti/wlcore/acx.c @@ -81,7 +81,10 @@ int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth) auth->sleep_auth = sleep_auth; ret = wl1271_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth)); + if (ret < 0) + goto out; + wl->sleep_auth = sleep_auth; out: kfree(auth); return ret; |