diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2010-08-23 23:28:03 -0400 |
---|---|---|
committer | Luciano Coelho <luciano.coelho@nokia.com> | 2010-09-28 05:15:11 -0400 |
commit | 65cddbf1353212f8ab00c6084e3063d85c419201 (patch) | |
tree | 3ec417fc98406d6310769a0d8a05a3067f307d78 /drivers/net/wireless/wl12xx/wl1271_cmd.c | |
parent | 02fabb0eafde901ae51532ad15fdd4737b7d71e3 (diff) |
wl1271: Reduce rate used for last PSM entry attempt
This patch reduces the rate of the null-func used to enter PSM on the last
retry as precaution.
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_cmd.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c index 42e7d2f236c4..06b14f2abf55 100644 --- a/drivers/net/wireless/wl12xx/wl1271_cmd.c +++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c | |||
@@ -390,7 +390,7 @@ out: | |||
390 | return ret; | 390 | return ret; |
391 | } | 391 | } |
392 | 392 | ||
393 | int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode, bool send) | 393 | int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode, u32 rates, bool send) |
394 | { | 394 | { |
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; |
@@ -407,7 +407,7 @@ int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode, bool send) | |||
407 | ps_params->send_null_data = send; | 407 | ps_params->send_null_data = send; |
408 | ps_params->retries = 5; | 408 | ps_params->retries = 5; |
409 | ps_params->hang_over_period = 1; | 409 | ps_params->hang_over_period = 1; |
410 | ps_params->null_data_rate = cpu_to_le32(wl->basic_rate_set); | 410 | ps_params->null_data_rate = cpu_to_le32(rates); |
411 | 411 | ||
412 | ret = wl1271_cmd_send(wl, CMD_SET_PS_MODE, ps_params, | 412 | ret = wl1271_cmd_send(wl, CMD_SET_PS_MODE, ps_params, |
413 | sizeof(*ps_params), 0); | 413 | sizeof(*ps_params), 0); |