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>
                bp->link_params.feature_config_flags &=
                                ~FEATURE_CONFIG_MODULE_ENFORCMENT_ENABLED;
 
+       /* If the device is capable of WoL, set the default state according
+        * to the HW
+        */
+       bp->wol = (!(bp->flags & NO_WOL_FLAG) &&
+                  (config & PORT_FEATURE_WOL_ENABLED));
+
        BNX2X_DEV_INFO("lane_config 0x%08x  ext_phy_config 0x%08x"
                       "  speed_cap_mask 0x%08x  link_config 0x%08x\n",
                       bp->link_params.lane_config,