summaryrefslogtreecommitdiff
path: root/sys/src/cmd/nusb/ether/smsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/nusb/ether/smsc.c')
-rw-r--r--sys/src/cmd/nusb/ether/smsc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/nusb/ether/smsc.c b/sys/src/cmd/nusb/ether/smsc.c
index c0d6710ee..43143d3d8 100644
--- a/sys/src/cmd/nusb/ether/smsc.c
+++ b/sys/src/cmd/nusb/ether/smsc.c
@@ -228,10 +228,10 @@ smscreceive(Dev *ep)
break;
if((hd & Rxerror) == 0){
if(n == BLEN(b)){
- etheriq(b, 1);
+ etheriq(b);
return 0;
}
- etheriq(copyblock(b, n), 1);
+ etheriq(copyblock(b, n));
}
b->rp += (n + 3) & ~3;
}
@@ -284,7 +284,7 @@ smscinit(Dev *d)
if(!doreset(d, Hwcfg, Lrst) || !doreset(d, Pmctrl, Phyrst))
return -1;
if(!setmac)
- if(eepromr(d, MACoffset, macaddr, 6) < 0)
+ if(eepromr(d, MACoffset, macaddr, Eaddrlen) < 0)
return -1;
wr(d, Addrl, GET4(macaddr));
wr(d, Addrh, GET2(macaddr+4));