summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/ps.c
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2012-02-28 19:13:28 +0200
committerLuciano Coelho <coelho@ti.com>2012-06-21 12:44:17 +0300
commit26b5858a67e4316ecd8159e2c0dc5591ef68226a (patch)
tree8e18985fc0760067ccc0b93f2102edc552893210 /drivers/net/wireless/ti/wlcore/ps.c
parentc954910bc4501447cc647d5fca5bd0d9439e177d (diff)
downloadlinux-26b5858a67e4316ecd8159e2c0dc5591ef68226a.tar.bz2
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/ps.c')
-rw-r--r--drivers/net/wireless/ti/wlcore/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/ps.c b/drivers/net/wireless/ti/wlcore/ps.c
index 47e81b32f7da..95d8797cfa28 100644
--- a/drivers/net/wireless/ti/wlcore/ps.c
+++ b/drivers/net/wireless/ti/wlcore/ps.c
@@ -76,7 +76,7 @@ void wl1271_ps_elp_sleep(struct wl1271 *wl)
struct wl12xx_vif *wlvif;
u32 timeout;
- if (wl->quirks & WLCORE_QUIRK_NO_ELP)
+ if (wl->sleep_auth != WL1271_PSM_ELP)
return;
/* we shouldn't get consecutive sleep requests */