Commit 3cde6124 authored by Scott Feldman's avatar Scott Feldman Committed by Jeff Garzik

[E100] Honor WOL settings in EEPROM

On Thu, 20 Mar 2003, Scott Feldman wrote:


* Honor WOL settings in EEPROM: only advertise WOL magic
  packet if in EEPROM.
parent 6e840954
...@@ -693,13 +693,14 @@ e100_found1(struct pci_dev *pcid, const struct pci_device_id *ent) ...@@ -693,13 +693,14 @@ e100_found1(struct pci_dev *pcid, const struct pci_device_id *ent)
/* Check if WoL is enabled on EEPROM */ /* Check if WoL is enabled on EEPROM */
if (e100_eeprom_read(bdp, EEPROM_ID_WORD) & BIT_5) { if (e100_eeprom_read(bdp, EEPROM_ID_WORD) & BIT_5) {
/* Magic Packet WoL is enabled on device by default */
/* if EEPROM WoL bit is TRUE */
bdp->wolsupported = WAKE_MAGIC;
bdp->wolopts = WAKE_MAGIC;
if (bdp->rev_id >= D101A4_REV_ID) if (bdp->rev_id >= D101A4_REV_ID)
bdp->wolsupported = WAKE_PHY | WAKE_MAGIC; bdp->wolsupported = WAKE_PHY | WAKE_MAGIC;
if (bdp->rev_id >= D101MA_REV_ID) if (bdp->rev_id >= D101MA_REV_ID)
bdp->wolsupported |= WAKE_UCAST | WAKE_ARP; bdp->wolsupported |= WAKE_UCAST | WAKE_ARP;
/* Magic Packet WoL is enabled on device by default */
/* if EEPROM WoL bit is TRUE */
bdp->wolopts = WAKE_MAGIC;
} }
printk(KERN_NOTICE "\n"); printk(KERN_NOTICE "\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment