diff options
author | Eliad Peller <eliad@wizery.com> | 2012-05-15 10:08:52 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-06-05 10:16:08 -0400 |
commit | 1ab0f212629462ae2600bb3523dc75b96e8544eb (patch) | |
tree | eb6cad375cb768583b47f1800653a5370f553a14 /drivers | |
parent | d35dc739f6a0b3680a591bd4e831fd3afa912632 (diff) |
wlcore: use the original elp time in forced_ps mode
The dynamic PS timeout is meaningless in forced PS mode.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/ps.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/ps.c b/drivers/net/wireless/ti/wlcore/ps.c index 756eee2257b4..958535dee9f3 100644 --- a/drivers/net/wireless/ti/wlcore/ps.c +++ b/drivers/net/wireless/ti/wlcore/ps.c | |||
@@ -28,6 +28,8 @@ | |||
28 | 28 | ||
29 | #define WL1271_WAKEUP_TIMEOUT 500 | 29 | #define WL1271_WAKEUP_TIMEOUT 500 |
30 | 30 | ||
31 | #define ELP_ENTRY_DELAY 5 | ||
32 | |||
31 | void wl1271_elp_work(struct work_struct *work) | 33 | void wl1271_elp_work(struct work_struct *work) |
32 | { | 34 | { |
33 | struct delayed_work *dwork; | 35 | struct delayed_work *dwork; |
@@ -72,6 +74,7 @@ out: | |||
72 | void wl1271_ps_elp_sleep(struct wl1271 *wl) | 74 | void wl1271_ps_elp_sleep(struct wl1271 *wl) |
73 | { | 75 | { |
74 | struct wl12xx_vif *wlvif; | 76 | struct wl12xx_vif *wlvif; |
77 | u32 timeout; | ||
75 | 78 | ||
76 | if (wl->quirks & WLCORE_QUIRK_NO_ELP) | 79 | if (wl->quirks & WLCORE_QUIRK_NO_ELP) |
77 | return; | 80 | return; |
@@ -89,8 +92,13 @@ void wl1271_ps_elp_sleep(struct wl1271 *wl) | |||
89 | return; | 92 | return; |
90 | } | 93 | } |
91 | 94 | ||
95 | if (wl->conf.conn.forced_ps) | ||
96 | timeout = ELP_ENTRY_DELAY; | ||
97 | else | ||
98 | timeout = wl->conf.conn.dynamic_ps_timeout; | ||
99 | |||
92 | ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, | 100 | ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, |
93 | msecs_to_jiffies(wl->conf.conn.dynamic_ps_timeout)); | 101 | msecs_to_jiffies(timeout)); |
94 | } | 102 | } |
95 | 103 | ||
96 | int wl1271_ps_elp_wakeup(struct wl1271 *wl) | 104 | int wl1271_ps_elp_wakeup(struct wl1271 *wl) |