summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_usb.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 15:07:05 -0800
commit506e9025e030c441679fb1ae77fb0d6266c34443 (patch)
tree9869587068fae691b9bdee93c6b9df85ef786023 /drivers/net/wireless/libertas/if_usb.c
parentd1f7a5b8cfefdb443a05a9e3d636fe7fef57459a (diff)
downloadlinux-506e9025e030c441679fb1ae77fb0d6266c34443.tar.gz
linux-506e9025e030c441679fb1ae77fb0d6266c34443.tar.bz2
linux-506e9025e030c441679fb1ae77fb0d6266c34443.zip
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/if_usb.c')
-rw-r--r--drivers/net/wireless/libertas/if_usb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index 15715a6b59e0..819141652599 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -242,9 +242,9 @@ static int if_usb_probe(struct usb_interface *intf,
if_usb_set_boot2_ver(priv);
- /* Set suspend/resume configuration:
- wake via GPIO2 after a 20ms delay */
- lbs_host_sleep_cfg(priv, EHS_WAKE_ON_UNICAST_DATA, 2, 20);
+ priv->wol_gpio = 2; /* Wake via GPIO2... */
+ priv->wol_gap = 20; /* ... after 20ms */
+ lbs_host_sleep_cfg(priv, EHS_WAKE_ON_UNICAST_DATA);
usb_get_dev(udev);
usb_set_intfdata(intf, cardp);