diff options
author | Bernd Eckenfels <net-tools@lina.inka.de> | 2003-10-20 22:01:13 +0000 |
---|---|---|
committer | Bernd Eckenfels <net-tools@lina.inka.de> | 2003-10-20 22:01:13 +0000 |
commit | 7dfa4bdf45f8a9d939522cfa48f48aafd4bcabf3 (patch) | |
tree | 05aa7357c96f8dfda5098b3e209e3ff76c4a01d1 /mii-tool.c | |
parent | fix portability problem on 64-bit big endian. (diff) | |
download | net-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |