projects
/
platform
/
upstream
/
net-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2085dd6
)
patch to recognize more hardware without MII support (from Redhat Bug#77882,
author
Bernd Eckenfels
<net-tools@lina.inka.de>
Mon, 20 Oct 2003 22:01:13 +0000
(22:01 +0000)
committer
Bernd Eckenfels
<net-tools@lina.inka.de>
Mon, 20 Oct 2003 22:01:13 +0000
(22:01 +0000)
notified by Tilmann Bubeck).
mii-tool.c
patch
|
blob
|
history
diff --git
a/mii-tool.c
b/mii-tool.c
index
af57e91
..
8546356
100644
(file)
--- 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;
}