diff options
Diffstat (limited to 'sys/dev/usb/if_wi_usb.c')
-rw-r--r-- | sys/dev/usb/if_wi_usb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/if_wi_usb.c b/sys/dev/usb/if_wi_usb.c index 6a901bc28f5..84e14aa72ce 100644 --- a/sys/dev/usb/if_wi_usb.c +++ b/sys/dev/usb/if_wi_usb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi_usb.c,v 1.3 2003/11/08 19:17:28 jmc Exp $ */ +/* $OpenBSD: if_wi_usb.c,v 1.4 2003/11/09 20:54:19 drahn Exp $ */ /* * Copyright (c) 2003 Dale Rahn. All rights reserved. @@ -451,6 +451,9 @@ wi_send_packet(struct wi_usb_softc *sc, int id) bzero(((char *)c->wi_usb_buf)+total_len, rnd_len - total_len); + /* zero old packet for next TX */ + bzero(wibuf, total_len); + total_len = rnd_len; DPRINTFN(5,("%s: %s: id=%x len=%x\n", |