aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2010-05-07 04:39:02 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-07 14:57:20 -0400
commitcbd1ea87a198669537591cef9ee834d6986c169b (patch)
tree0ce8ae4a49059b838f177ed08044bcc21c196f73 /drivers/net
parent0cbb1034396243173fa5acac715fcf416fa76644 (diff)
wl1271: Reduce PSM entry hang over period from 128 => 1 ms
Currently, we configure a 128ms hang over period for the PSM entry (the firmware will remain active for 128ms after sending the null func for PSM and getting an ack for it.) This is a huge power consumption issue, and appears unnecessary. So, configure the value to 1 ms. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Janne Ylalehto <janne.ylalehto@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_cmd.c b/drivers/net/wireless/wl12xx/wl1271_cmd.c
index 4292f8dc2a80..0a2d2ed1e1bf 100644
--- a/drivers/net/wireless/wl12xx/wl1271_cmd.c
+++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c
@@ -515,7 +515,7 @@ int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode, bool send)
515 ps_params->ps_mode = ps_mode; 515 ps_params->ps_mode = ps_mode;
516 ps_params->send_null_data = send; 516 ps_params->send_null_data = send;
517 ps_params->retries = 5; 517 ps_params->retries = 5;
518 ps_params->hang_over_period = 128; 518 ps_params->hang_over_period = 1;
519 ps_params->null_data_rate = cpu_to_le32(1); /* 1 Mbps */ 519 ps_params->null_data_rate = cpu_to_le32(1); /* 1 Mbps */
520 520
521 ret = wl1271_cmd_send(wl, CMD_SET_PS_MODE, ps_params, 521 ret = wl1271_cmd_send(wl, CMD_SET_PS_MODE, ps_params,