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:
Brian Somers 1999-11-09 23:30:59 +00:00
parent da8b70349b
commit 772d2e0939

View File

@ -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);