diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-12 15:19:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:07:01 -0800 |
commit | 6ce4fd2a3a84e64a27c42aaa7de6e0e85dee3573 (patch) | |
tree | 4f9f5037a03aee5382af8cafb7d09699a658abb6 /drivers/net/wireless/libertas/cmd.c | |
parent | a27b9f96f21a2f15c423cca745f65de3db61e364 (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.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 8d8f9d9ba19..2d7b646557c 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c @@ -111,6 +111,25 @@ out: return ret; } +int lbs_host_sleep_cfg(struct lbs_private *priv, uint32_t criteria, + uint8_t gpio, uint8_t gap) +{ + struct cmd_ds_host_sleep cmd_config; + int ret; + + cmd_config.criteria = cpu_to_le32(criteria); + cmd_config.gpio = gpio; + cmd_config.gap = gap; + + ret = lbs_cmd_with_response(priv, CMD_802_11_HOST_SLEEP_CFG, cmd_config); + if (ret) { + lbs_pr_info("HOST_SLEEP_CFG failed %d\n", ret); + return ret; + } + return ret; +} +EXPORT_SYMBOL_GPL(lbs_host_sleep_cfg); + static int lbs_cmd_802_11_ps_mode(struct lbs_private *priv, struct cmd_ds_command *cmd, u16 cmd_action) |