diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-02-12 03:37:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 02:31:47 -0500 |
commit | 3ce2c3f9a30dd7756dcbe2322841754f18f098f0 (patch) | |
tree | 812db053ee6996ca8ee3f6088f5ba35b08a4161f /drivers/net | |
parent | 3e5b510eb8c9ea5f762e0a0a9ce59254d6671dce (diff) |
bnx2x: Using nvram default WoL config
The driver default WoL setting is set to the nvram default value
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/bnx2x_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 2e95799a0db2..a14fe7544844 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -8027,6 +8027,12 @@ static void __devinit bnx2x_get_port_hwinfo(struct bnx2x *bp) | |||
8027 | bp->link_params.feature_config_flags &= | 8027 | bp->link_params.feature_config_flags &= |
8028 | ~FEATURE_CONFIG_MODULE_ENFORCMENT_ENABLED; | 8028 | ~FEATURE_CONFIG_MODULE_ENFORCMENT_ENABLED; |
8029 | 8029 | ||
8030 | /* If the device is capable of WoL, set the default state according | ||
8031 | * to the HW | ||
8032 | */ | ||
8033 | bp->wol = (!(bp->flags & NO_WOL_FLAG) && | ||
8034 | (config & PORT_FEATURE_WOL_ENABLED)); | ||
8035 | |||
8030 | BNX2X_DEV_INFO("lane_config 0x%08x ext_phy_config 0x%08x" | 8036 | BNX2X_DEV_INFO("lane_config 0x%08x ext_phy_config 0x%08x" |
8031 | " speed_cap_mask 0x%08x link_config 0x%08x\n", | 8037 | " speed_cap_mask 0x%08x link_config 0x%08x\n", |
8032 | bp->link_params.lane_config, | 8038 | bp->link_params.lane_config, |