]> Pileus Git - ~andy/linux/blobdiff - drivers/net/benet/be_ethtool.c
ethtool: allow custom interval for physical identification
[~andy/linux] / drivers / net / benet / be_ethtool.c
index 96f5502e0ef7707e17909e0212d5ebc62e5334d9..80226e4801f34bf6eb31f49f6784d7dda4212f66 100644 (file)
@@ -516,7 +516,7 @@ be_set_phys_id(struct net_device *netdev,
        case ETHTOOL_ID_ACTIVE:
                be_cmd_get_beacon_state(adapter, adapter->hba_port_num,
                                        &adapter->beacon_state);
-               return -EINVAL;
+               return 1;       /* cycle on/off once per second */
 
        case ETHTOOL_ID_ON:
                be_cmd_set_beacon_state(adapter, adapter->hba_port_num, 0, 0,