From: Mallikarjuna R Chilakala Date: Thu, 2 Jul 2009 12:51:10 +0000 (+0000) Subject: ixgbe: Not allow 8259x unsupported wol options change from ethtool X-Git-Tag: v2.6.31-rc3~40^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5d57af52464f37dd3c67906a493a6400bc51b43;p=platform%2Fupstream%2Fkernel-adaptation-pc.git ixgbe: Not allow 8259x unsupported wol options change from ethtool Wake-on-lan is currently only supported by 82599 KX4 devices, in all other cases return a proper value from ixgbe_wol_exclusion function call. Otherwise from ethtool we will be able to change wol options of unsupported 8259x devices. Signed-off-by: Mallikarjuna R Chilakala Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 0f7b6a3..2a97800 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c @@ -1830,7 +1830,6 @@ static int ixgbe_wol_exclusion(struct ixgbe_adapter *adapter, break; default: wol->supported = 0; - retval = 0; } return retval;