igb: check both function bits in status register in wol exception
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 23 Dec 2009 13:21:46 +0000 (13:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2009 04:47:51 +0000 (20:47 -0800)
commit58b8b042509f53955ba660a4245e221c5405f124
treed5223270808511fb8bf7a478f87407114cd6a638
parentd405ea3ef2499eb46834418a643973c884ff7f30
igb: check both function bits in status register in wol exception

The ethtool code for enabling Wake on Lan was not correctly checking the
status register bits so as a result ports 0 and 2 were both being allowed
to set WOL to enabled even though it is only supported on the first port
for our adapters.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_ethtool.c