aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Eckenfels <net-tools@lina.inka.de>2003-10-20 22:01:13 +0000
committerBernd Eckenfels <net-tools@lina.inka.de>2003-10-20 22:01:13 +0000
commit7dfa4bdf45f8a9d939522cfa48f48aafd4bcabf3 (patch)
tree05aa7357c96f8dfda5098b3e209e3ff76c4a01d1 /mii-tool.c
parentfix portability problem on 64-bit big endian. (diff)
downloadnet-tools-7dfa4bdf45f8a9d939522cfa48f48aafd4bcabf3.tar.gz
net-tools-7dfa4bdf45f8a9d939522cfa48f48aafd4bcabf3.tar.bz2
net-tools-7dfa4bdf45f8a9d939522cfa48f48aafd4bcabf3.zip
patch to recognize more hardware without MII support (from Redhat Bug#77882,
notified by Tilmann Bubeck).
Diffstat (limited to 'mii-tool.c')
-rw-r--r--mii-tool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mii-tool.c b/mii-tool.c
index af57e91..8546356 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;
}