Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218445
b: refs/heads/master
c: f2dc0d1
h: refs/heads/master
i:
  218443: 0cbfff7
v: v3
  • Loading branch information
Rafael J. Wysocki authored and David S. Miller committed Oct 26, 2010
1 parent fc947bd commit 364afe7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78fd9c4491a9c4cf8b401f1c5a516d3d28d3b42b
refs/heads/master: f2dc0d1809ab7e0147c7e4ac837be1682f706538
10 changes: 5 additions & 5 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -9948,16 +9948,16 @@ static int tg3_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
!((tp->tg3_flags & TG3_FLAG_WOL_CAP) && device_can_wakeup(dp)))
return -EINVAL;

device_set_wakeup_enable(dp, wol->wolopts & WAKE_MAGIC);

spin_lock_bh(&tp->lock);
if (wol->wolopts & WAKE_MAGIC) {
if (device_may_wakeup(dp))
tp->tg3_flags |= TG3_FLAG_WOL_ENABLE;
device_set_wakeup_enable(dp, true);
} else {
else
tp->tg3_flags &= ~TG3_FLAG_WOL_ENABLE;
device_set_wakeup_enable(dp, false);
}
spin_unlock_bh(&tp->lock);


return 0;
}

Expand Down

0 comments on commit 364afe7

Please sign in to comment.