Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Compute packet length correctly (from FreeBSD).



details:   https://anonhg.NetBSD.org/src/rev/f5f5c9ad99b4
branches:  trunk
changeset: 480631:f5f5c9ad99b4
user:      augustss <augustss%NetBSD.org@localhost>
date:      Mon Jan 17 02:20:43 2000 +0000

description:
Compute packet length correctly (from FreeBSD).

diffstat:

 sys/dev/usb/if_aue.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 707641f287ca -r f5f5c9ad99b4 sys/dev/usb/if_aue.c
--- a/sys/dev/usb/if_aue.c      Mon Jan 17 02:04:01 2000 +0000
+++ b/sys/dev/usb/if_aue.c      Mon Jan 17 02:20:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_aue.c,v 1.10 2000/01/16 23:18:56 augustss Exp $     */
+/*     $NetBSD: if_aue.c,v 1.11 2000/01/17 02:20:43 augustss Exp $     */
 /*
  * Copyright (c) 1997, 1998, 1999, 2000
  *     Bill Paul <wpaul%ee.columbia.edu@localhost>.  All rights reserved.
@@ -1378,7 +1378,7 @@
         * and base the frame size on the bulk transfer length.
         */
        c->aue_buf[0] = (u_int8_t)m->m_pkthdr.len;
-       c->aue_buf[1] = (u_int8_t)(m->m_pkthdr.len >> 3) & 0xE0;
+       c->aue_buf[1] = (u_int8_t)(m->m_pkthdr.len >> 8);
        total_len = m->m_pkthdr.len + 2;
 
        usbd_setup_xfer(c->aue_xfer, sc->aue_ep[AUE_ENDPT_TX],



Home | Main Index | Thread Index | Old Index