If dev->connected is already set to CARRIER_OK in ether_AwaitCarrier,
don't go and set it to CARRIER_LOST !
This commit is contained in:
parent
da8b70349b
commit
772d2e0939
@ -267,7 +267,7 @@ ether_AwaitCarrier(struct physical *p)
|
||||
{
|
||||
struct etherdevice *dev = device2ether(p->handler);
|
||||
|
||||
if (!dev->timeout--)
|
||||
if (dev->connected != CARRIER_OK && !dev->timeout--)
|
||||
dev->connected = CARRIER_LOST;
|
||||
else if (dev->connected == CARRIER_PENDING)
|
||||
ether_MessageIn(dev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user