Created
April 18, 2010 19:28
-
-
Save fukusaka/370493 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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