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 | |
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')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_cmd.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_ps.c | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c index a338b1c93a29..a516035350d5 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c | |||
@@ -395,13 +395,6 @@ int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode, bool send) | |||
395 | struct wl1271_cmd_ps_params *ps_params = NULL; | 395 | struct wl1271_cmd_ps_params *ps_params = NULL; |
396 | int ret = 0; | 396 | int ret = 0; |
397 | 397 | ||
398 | /* FIXME: this should be in ps.c */ | ||
399 | ret = wl1271_acx_wake_up_conditions(wl); | ||
400 | if (ret < 0) { | ||
401 | wl1271_error("couldn't set wake up conditions"); | ||
402 | goto out; | ||
403 | } | ||
404 | |||
405 | wl1271_debug(DEBUG_CMD, "cmd set ps mode"); | 398 | wl1271_debug(DEBUG_CMD, "cmd set ps mode"); |
406 | 399 | ||
407 | ps_params = kzalloc(sizeof(*ps_params), GFP_KERNEL); | 400 | ps_params = kzalloc(sizeof(*ps_params), GFP_KERNEL); |
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; |