aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r--drivers/net/wireless/libertas/cmd.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index 8d8f9d9ba192..2d7b646557c8 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -111,6 +111,25 @@ out:
111 return ret; 111 return ret;
112} 112}
113 113
114int lbs_host_sleep_cfg(struct lbs_private *priv, uint32_t criteria,
115 uint8_t gpio, uint8_t gap)
116{
117 struct cmd_ds_host_sleep cmd_config;
118 int ret;
119
120 cmd_config.criteria = cpu_to_le32(criteria);
121 cmd_config.gpio = gpio;
122 cmd_config.gap = gap;
123
124 ret = lbs_cmd_with_response(priv, CMD_802_11_HOST_SLEEP_CFG, cmd_config);
125 if (ret) {
126 lbs_pr_info("HOST_SLEEP_CFG failed %d\n", ret);
127 return ret;
128 }
129 return ret;
130}
131EXPORT_SYMBOL_GPL(lbs_host_sleep_cfg);
132
114static int lbs_cmd_802_11_ps_mode(struct lbs_private *priv, 133static int lbs_cmd_802_11_ps_mode(struct lbs_private *priv,
115 struct cmd_ds_command *cmd, 134 struct cmd_ds_command *cmd,
116 u16 cmd_action) 135 u16 cmd_action)