net/mlx4_en: fix WOL handlers were always looking at port2 capability bit
authorOren Duer <oren@mellanox.co.il>
Sat, 26 Nov 2011 19:55:15 +0000 (19:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Nov 2011 22:17:04 +0000 (17:17 -0500)
commit559a9f1d354b577af28f84181751820ff7d29feb
treee148a9161da5a03d8778e05d1492955f8d38e0ac
parentf0ab34f011d805ce5b1a341409c9c26f0fc8252b
net/mlx4_en: fix WOL handlers were always looking at port2 capability bit

There are 2 capability bits for WOL, one for each port.
WOL handlers were looking only on the second bit, regardless of the port.

Signed-off-by: Oren Duer <oren@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
include/linux/mlx4/device.h