mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
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>
This commit is contained in:
parent
ca9e4988cc
commit
ca66ef500b
@ -380,9 +380,6 @@ be_phys_id(struct net_device *netdev, u32 data)
|
||||
int status;
|
||||
u32 cur;
|
||||
|
||||
if (!netif_running(netdev))
|
||||
return 0;
|
||||
|
||||
be_cmd_get_beacon_state(adapter, adapter->port_num, &cur);
|
||||
|
||||
if (cur == BEACON_STATE_ENABLED)
|
||||
|
Loading…
Reference in New Issue
Block a user