Module Name: src
Committed By: christos
Date: Mon Sep 20 14:18:13 UTC 2010
Modified Files:
src/sys/dev/usb: umodem_common.c
Log Message:
Use the control (not data) interface descriptor when looking at the
control interface endpoints! (from Anon Ymous)
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/usb/umodem_common.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/umodem_common.c
diff -u src/sys/dev/usb/umodem_common.c:1.18 src/sys/dev/usb/umodem_common.c:1.19
--- src/sys/dev/usb/umodem_common.c:1.18 Sun Jun 27 06:41:26 2010
+++ src/sys/dev/usb/umodem_common.c Mon Sep 20 10:18:13 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: umodem_common.c,v 1.18 2010/06/27 10:41:26 kardel Exp $ */
+/* $NetBSD: umodem_common.c,v 1.19 2010/09/20 14:18:13 christos Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.18 2010/06/27 10:41:26 kardel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umodem_common.c,v 1.19 2010/09/20 14:18:13 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -218,6 +218,7 @@
sc->sc_ctl_notify = -1;
sc->sc_notify_pipe = NULL;
+ id = usbd_get_interface_descriptor(sc->sc_ctl_iface);
for (i = 0; i < id->bNumEndpoints; i++) {
ed = usbd_interface2endpoint_descriptor(sc->sc_ctl_iface, i);
if (ed == NULL)