summaryrefslogtreecommitdiff
path: root/sys/src/cmd/nusb/ether/asix.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-02-18 19:56:58 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-02-18 19:56:58 +0100
commit986278e04d34ff62aaa8d24726e2540cfbd463cd (patch)
treebcd873edd7b493022ede797059f2d2295d14da7d /sys/src/cmd/nusb/ether/asix.c
parent729c9c39d9156674f61d086e3306bcc04ce8dfc5 (diff)
nusb/ether: mux bridges, bring in line with devether
Diffstat (limited to 'sys/src/cmd/nusb/ether/asix.c')
-rw-r--r--sys/src/cmd/nusb/ether/asix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/cmd/nusb/ether/asix.c b/sys/src/cmd/nusb/ether/asix.c
index 560ef12e6..f2ec83446 100644
--- a/sys/src/cmd/nusb/ether/asix.c
+++ b/sys/src/cmd/nusb/ether/asix.c
@@ -227,10 +227,10 @@ asixreceive(Dev *ep)
if((n != hd) || (n > BLEN(b)))
break;
if(n == BLEN(b)){
- etheriq(b, 1);
+ etheriq(b);
return 0;
}
- etheriq(copyblock(b, n), 1);
+ etheriq(copyblock(b, n));
b->rp += n;
}
freeb(b);
@@ -309,7 +309,7 @@ a88178init(Dev *d)
asixset(d, Creset, Rippd|Rprl);
sleep(150);
asixset(d, Cwrxctl, 0);
- if(asixget(d, Crmac, macaddr, 6) < 0)
+ if(asixget(d, Crmac, macaddr, Eaddrlen) < 0)
return -1;
asixphy = getphy(d);
if(ee17 < 0 || (ee17 & 0x7) == 0){
@@ -364,7 +364,7 @@ a88772init(Dev *d)
getrxctl(d);
if(asixset(d, Cwrxctl, 0) < 0)
return -1;
- if(asixget(d, Crmac, macaddr, 6) < 0)
+ if(asixget(d, Crmac, macaddr, Eaddrlen) < 0)
return -1;
if(asixset(d, Creset, Rprl) < 0)
return -1;