diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2010-08-10 00:38:36 -0400 |
---|---|---|
committer | Luciano Coelho <luciano.coelho@nokia.com> | 2010-09-28 05:15:08 -0400 |
commit | 03f06b7efc8cbc666bd096b68bdf955388e0b323 (patch) | |
tree | 3f5c95edc8b2fe9159e638a6fcd3c8f6bd5eaf58 /drivers/net/wireless/wl12xx/wl1271_ps.c | |
parent | 2f63b011b4a6d3c0572147be5756212f5558fff0 (diff) |
wl1271: Move setting of wake-up conditions to ps.c from cmd.c
This removes a fixme. Also, it removes a redundant setting of the wake-up
conditions when exiting power save mode, which should improve performance.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_ps.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_ps.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_ps.c b/drivers/net/wireless/wl12xx/wl1271_ps.c index a5e60e0403e5..52a60959bb9c 100644 --- a/drivers/net/wireless/wl12xx/wl1271_ps.c +++ b/drivers/net/wireless/wl12xx/wl1271_ps.c | |||
@@ -129,6 +129,12 @@ int wl1271_ps_set_mode(struct wl1271 *wl, enum wl1271_cmd_ps_mode mode, | |||
129 | case STATION_POWER_SAVE_MODE: | 129 | case STATION_POWER_SAVE_MODE: |
130 | wl1271_debug(DEBUG_PSM, "entering psm"); | 130 | wl1271_debug(DEBUG_PSM, "entering psm"); |
131 | 131 | ||
132 | ret = wl1271_acx_wake_up_conditions(wl); | ||
133 | if (ret < 0) { | ||
134 | wl1271_error("couldn't set wake up conditions"); | ||
135 | return ret; | ||
136 | } | ||
137 | |||
132 | ret = wl1271_cmd_ps_mode(wl, STATION_POWER_SAVE_MODE, send); | 138 | ret = wl1271_cmd_ps_mode(wl, STATION_POWER_SAVE_MODE, send); |
133 | if (ret < 0) | 139 | if (ret < 0) |
134 | return ret; | 140 | return ret; |