aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet
diff options
context:
space:
mode:
authorAjit Khaparde <ajitk@serverengines.com>2009-11-29 12:56:56 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-02 03:50:25 -0500
commitca66ef500b874de4bf58e05f9d18ccdce64eabbc (patch)
treee4ea09fd7a0528433854dff30b74c7971cb01ba8 /drivers/net/benet
parentca9e4988ccbde3b11116679f1b023eb75df8017e (diff)
be2net: fix to allow port beacon when device is closed
port identification/beaconing is failing if device open has not been done. Fixing it. Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet')
-rw-r--r--drivers/net/benet/be_ethtool.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/benet/be_ethtool.c b/drivers/net/benet/be_ethtool.c
index e8f92831021a..9eabed4e3b92 100644
--- a/drivers/net/benet/be_ethtool.c
+++ b/drivers/net/benet/be_ethtool.c
@@ -380,9 +380,6 @@ be_phys_id(struct net_device *netdev, u32 data)
380 int status; 380 int status;
381 u32 cur; 381 u32 cur;
382 382
383 if (!netif_running(netdev))
384 return 0;
385
386 be_cmd_get_beacon_state(adapter, adapter->port_num, &cur); 383 be_cmd_get_beacon_state(adapter, adapter->port_num, &cur);
387 384
388 if (cur == BEACON_STATE_ENABLED) 385 if (cur == BEACON_STATE_ENABLED)