]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[realtek] Update link state when device is opened
authorMichael Brown <mcb30@ipxe.org>
Mon, 23 Apr 2012 09:47:11 +0000 (10:47 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 23 Apr 2012 09:54:14 +0000 (10:54 +0100)
commit5b18489685e8424c42b93e3c2707c2c9ffa2fc31
tree54608d9117fba8c2cae7b5ad0f5d812d6bcdcd9c
parent44d5ef9d7d525edf4c9d8c7a5b8b09f6eb4143b9
[realtek] Update link state when device is opened

The link state is currently set at probe time, and updated only when
the device is polled.  This results in the user seeing a misleading
stale "Link: down" message, if autonegotiation did not complete within
the short timespan of the probe routine.

Fix by updating the link state when the device is opened, so that the
message that ends up being displayed to the user reflects the real
link state at device open time.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/realtek.c