be2net: Enabling Wake-on-LAN is not supported in S5 state
authorPadmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Sat, 20 Oct 2012 06:04:00 +0000 (06:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Oct 2012 02:15:37 +0000 (22:15 -0400)
be_shutdown is enabling wake-on-lan by calling be_setup_wol.
Emulex adapter do not support wake-on-lan in S5 state.

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Padmanabh Ratnakar <padmanabh.ratnakar@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index 136ed64ae1528fe69417f7b49520759e1f83021c..ab077fbeeb5b5eb318f0ccfa665942d17989060b 100644 (file)
@@ -4165,9 +4165,6 @@ static void be_shutdown(struct pci_dev *pdev)
 
        netif_device_detach(adapter->netdev);
 
-       if (adapter->wol)
-               be_setup_wol(adapter, true);
-
        be_cmd_reset_function(adapter);
 
        pci_disable_device(pdev);