aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_cmd.c')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_cmd.c4
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 a74259bb596b..dd2b5f0540a5 100644
--- a/drivers/net/wireless/wl12xx/wl1271_cmd.c
+++ b/drivers/net/wireless/wl12xx/wl1271_cmd.c
@@ -555,7 +555,7 @@ out:
555 return ret; 555 return ret;
556} 556}
557 557
558int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode) 558int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode, bool send)
559{ 559{
560 struct wl1271_cmd_ps_params *ps_params = NULL; 560 struct wl1271_cmd_ps_params *ps_params = NULL;
561 int ret = 0; 561 int ret = 0;
@@ -576,7 +576,7 @@ int wl1271_cmd_ps_mode(struct wl1271 *wl, u8 ps_mode)
576 } 576 }
577 577
578 ps_params->ps_mode = ps_mode; 578 ps_params->ps_mode = ps_mode;
579 ps_params->send_null_data = 1; 579 ps_params->send_null_data = send;
580 ps_params->retries = 5; 580 ps_params->retries = 5;
581 ps_params->hang_over_period = 128; 581 ps_params->hang_over_period = 128;
582 ps_params->null_data_rate = cpu_to_le32(1); /* 1 Mbps */ 582 ps_params->null_data_rate = cpu_to_le32(1); /* 1 Mbps */