Skip to content

Commit

Permalink
drivers/net/usb/asix: fixed asix_get_wol reported wrong wol status issue
Browse files Browse the repository at this point in the history
Fixed the asix_get_wol() routine reported wrong wol status issue.

Signed-off-by: Allan Chou <allan@asix.com.tw>
Tested-by: Eugene <elubarsky@gmail.com>; Allan Chou <allan@asix.com.tw>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
allan authored and David S. Miller committed Dec 23, 2011
1 parent 30e7dfe commit f87ce5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/usb/asix.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <linux/usb/usbnet.h>
#include <linux/slab.h>

#define DRIVER_VERSION "08-Nov-2011"
#define DRIVER_VERSION "22-Dec-2011"
#define DRIVER_NAME "asix"

/* ASIX AX8817X based USB 2.0 Ethernet Devices */
Expand Down Expand Up @@ -689,6 +689,10 @@ asix_get_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo)
}
wolinfo->supported = WAKE_PHY | WAKE_MAGIC;
wolinfo->wolopts = 0;
if (opt & AX_MONITOR_LINK)
wolinfo->wolopts |= WAKE_PHY;
if (opt & AX_MONITOR_MAGIC)
wolinfo->wolopts |= WAKE_MAGIC;
}

static int
Expand Down

0 comments on commit f87ce5b

Please sign in to comment.