From 69ea5f367b5ab5079c64ba293215d3e223242357 Mon Sep 17 00:00:00 2001 From: ecki Date: Mon, 20 Oct 2003 22:01:13 +0000 Subject: [PATCH] patch to recognize more hardware without MII support (from Redhat Bug#77882, notified by Tilmann Bubeck). --- mii-tool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mii-tool.c b/mii-tool.c index af57e915d..8546356e0 100644 --- a/mii-tool.c +++ b/mii-tool.c @@ -208,8 +208,8 @@ int show_basic_mii(int sock, int phy_id) mdio_read(sock, MII_BMSR); for (i = 0; i < ((verbose > 1) ? 32 : 8); i++) mii_val[i] = mdio_read(sock, i); - - if (mii_val[MII_BMCR] == 0xffff) { + + if (mii_val[MII_BMCR] == 0xffff || mii_val[MII_BMSR] == 0x0000) { fprintf(stderr, " No MII transceiver present!.\n"); return -1; } -- 2.11.4.GIT