aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/ps.c
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-02-02 05:03:39 -0500
committerLuciano Coelho <coelho@ti.com>2012-02-15 01:38:33 -0500
commitdae728fe67c7c5ab10f91366bd9d1f8db203e123 (patch)
tree7e6b717095b5564a883ed0481ecc77ca4be766d8 /drivers/net/wireless/wl12xx/ps.c
parent26612c435b34bd99fdf79f5c1d8826ebd0ea86f3 (diff)
wl12xx: Set different wake up conditions in case of suspend
Added ability to set different wake up conditions for suspend/resume. Set default values to wake up every 3 DTIMs while suspended and every 1 DTIM while resumed Signed-off-by: Eyal Shapira <eyal@wizery.com> Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/ps.c')
-rw-r--r--drivers/net/wireless/wl12xx/ps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/ps.c b/drivers/net/wireless/wl12xx/ps.c
index e209e29ffb45..d1979223ad28 100644
--- a/drivers/net/wireless/wl12xx/ps.c
+++ b/drivers/net/wireless/wl12xx/ps.c
@@ -170,7 +170,9 @@ int wl1271_ps_set_mode(struct wl1271 *wl, struct wl12xx_vif *wlvif,
170 wl1271_debug(DEBUG_PSM, "entering psm (mode=%d,timeout=%u)", 170 wl1271_debug(DEBUG_PSM, "entering psm (mode=%d,timeout=%u)",
171 mode, timeout); 171 mode, timeout);
172 172
173 ret = wl1271_acx_wake_up_conditions(wl, wlvif); 173 ret = wl1271_acx_wake_up_conditions(wl, wlvif,
174 wl->conf.conn.wake_up_event,
175 wl->conf.conn.listen_interval);
174 if (ret < 0) { 176 if (ret < 0) {
175 wl1271_error("couldn't set wake up conditions"); 177 wl1271_error("couldn't set wake up conditions");
176 return ret; 178 return ret;