Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314127
b: refs/heads/master
c: 1ab0f21
h: refs/heads/master
i:
  314125: 349b062
  314123: 7fec42e
  314119: c7dd812
  314111: 36bccb5
v: v3
  • Loading branch information
Eliad Peller authored and Luciano Coelho committed Jun 5, 2012
1 parent d5cbdfd commit b6556f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d35dc739f6a0b3680a591bd4e831fd3afa912632
refs/heads/master: 1ab0f212629462ae2600bb3523dc75b96e8544eb
10 changes: 9 additions & 1 deletion trunk/drivers/net/wireless/ti/wlcore/ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

#define WL1271_WAKEUP_TIMEOUT 500

#define ELP_ENTRY_DELAY 5

void wl1271_elp_work(struct work_struct *work)
{
struct delayed_work *dwork;
Expand Down Expand Up @@ -72,6 +74,7 @@ void wl1271_elp_work(struct work_struct *work)
void wl1271_ps_elp_sleep(struct wl1271 *wl)
{
struct wl12xx_vif *wlvif;
u32 timeout;

if (wl->quirks & WLCORE_QUIRK_NO_ELP)
return;
Expand All @@ -89,8 +92,13 @@ void wl1271_ps_elp_sleep(struct wl1271 *wl)
return;
}

if (wl->conf.conn.forced_ps)
timeout = ELP_ENTRY_DELAY;
else
timeout = wl->conf.conn.dynamic_ps_timeout;

ieee80211_queue_delayed_work(wl->hw, &wl->elp_work,
msecs_to_jiffies(wl->conf.conn.dynamic_ps_timeout));
msecs_to_jiffies(timeout));
}

int wl1271_ps_elp_wakeup(struct wl1271 *wl)
Expand Down

0 comments on commit b6556f9

Please sign in to comment.