aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmd.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-12 15:19:29 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:07:01 -0500
commit6ce4fd2a3a84e64a27c42aaa7de6e0e85dee3573 (patch)
tree4f9f5037a03aee5382af8cafb7d09699a658abb6 /drivers/net/wireless/libertas/cmd.c
parenta27b9f96f21a2f15c423cca745f65de3db61e364 (diff)
libertas: add lbs_host_sleep_cfg() command function
Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
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)