aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-12 20:06:06 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:07:05 -0500
commit506e9025e030c441679fb1ae77fb0d6266c34443 (patch)
tree9869587068fae691b9bdee93c6b9df85ef786023 /drivers/net/wireless/libertas/main.c
parentd1f7a5b8cfefdb443a05a9e3d636fe7fef57459a (diff)
libertas: add ethtool support for wake-on-lan configuration
Also, check that suspend is refused if HOST_SLEEP_CFG hasn't been done. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 1ea119ed3d22..5e2f3296be34 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -839,6 +839,11 @@ int lbs_suspend(struct lbs_private *priv)
839 struct cmd_header cmd; 839 struct cmd_header cmd;
840 int ret; 840 int ret;
841 841
842 if (priv->wol_criteria == 0xffffffff) {
843 lbs_pr_info("Suspend attempt without configuring wake params!\n");
844 return -EINVAL;
845 }
846
842 memset(&cmd, 0, sizeof(cmd)); 847 memset(&cmd, 0, sizeof(cmd));
843 848
844 ret = __lbs_cmd(priv, CMD_802_11_HOST_SLEEP_ACTIVATE, &cmd, 849 ret = __lbs_cmd(priv, CMD_802_11_HOST_SLEEP_ACTIVATE, &cmd,
@@ -1088,6 +1093,9 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev)
1088 sprintf(priv->mesh_ssid, "mesh"); 1093 sprintf(priv->mesh_ssid, "mesh");
1089 priv->mesh_ssid_len = 4; 1094 priv->mesh_ssid_len = 4;
1090 1095
1096 priv->wol_criteria = 0xffffffff;
1097 priv->wol_gpio = 0xff;
1098
1091 goto done; 1099 goto done;
1092 1100
1093err_init_adapter: 1101err_init_adapter: