e1000e: check WoL mode is among set of supported modes
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 20 Nov 2009 23:22:01 +0000 (23:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Nov 2009 19:33:42 +0000 (11:33 -0800)
commit1fbfca3211ce50d992d66bcda71fc47bf5e268c9
tree43cf6dc5a2854a878fba9a4438add33253967d3a
parente994b7c901ded7200b525a707c6da71f2cf6d4bb
e1000e: check WoL mode is among set of supported modes

When setting WoL feature, check the supplied modes are all supported rather
than checking for no support.  This way, if any new modes are added the
driver does not default to not complaining about it if we don't really
support it.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/ethtool.c