Skip to content

Instantly share code, notes, and snippets.

@fukusaka
Created April 18, 2010 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fukusaka/370493 to your computer and use it in GitHub Desktop.
Save fukusaka/370493 to your computer and use it in GitHub Desktop.
--- linux-source-2.6.26/drivers/net/via-velocity.c.1.14 2009-09-19 01:10:51.000000000 +0900
+++ linux-source-2.6.26/drivers/net/via-velocity.c 2009-09-19 01:12:22.000000000 +0900
@@ -400,6 +400,7 @@
static u32 mii_check_media_mode(struct mac_regs __iomem * regs);
static u32 check_connection_type(struct mac_regs __iomem * regs);
static int velocity_set_media_mode(struct velocity_info *vptr, u32 mii_status);
+static int velocity_set_wol(struct velocity_info *vptr);
#ifdef CONFIG_PM
@@ -2041,8 +2042,10 @@
netif_stop_queue(dev);
velocity_shutdown(vptr);
- if (vptr->flags & VELOCITY_FLAGS_WOL_ENABLED)
+ if (vptr->flags & VELOCITY_FLAGS_WOL_ENABLED) {
velocity_get_ip(vptr);
+ velocity_set_wol(vptr);
+ }
if (dev->irq != 0)
free_irq(dev->irq, dev);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment