Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb PR/48715: Ryo ONODERA: Please support more USB m...
details: https://anonhg.NetBSD.org/src/rev/682b35dd631b
branches: trunk
changeset: 795292:682b35dd631b
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 06 02:01:43 2014 +0000
description:
PR/48715: Ryo ONODERA: Please support more USB modems
diffstat:
sys/dev/usb/umodem.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 269c57514b3c -r 682b35dd631b sys/dev/usb/umodem.c
--- a/sys/dev/usb/umodem.c Sun Apr 06 01:13:59 2014 +0000
+++ b/sys/dev/usb/umodem.c Sun Apr 06 02:01:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umodem.c,v 1.65 2012/10/03 07:07:04 mlelstv Exp $ */
+/* $NetBSD: umodem.c,v 1.66 2014/04/06 02:01:43 christos Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umodem.c,v 1.65 2012/10/03 07:07:04 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umodem.c,v 1.66 2014/04/06 02:01:43 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -98,12 +98,17 @@
usb_interface_descriptor_t *id;
int cm, acm;
+ id = usbd_get_interface_descriptor(uaa->iface);
+ if (uaa->subclass != UISUBCLASS_ABSTRACT_CONTROL_MODEL &&
+ (id->bInterfaceClass == UICLASS_CDC_DATA &&
+ id->bInterfaceSubClass == UISUBCLASS_DATA))
+ return (UMATCH_IFACECLASS_IFACESUBCLASS);
+
if (uaa->class != UICLASS_CDC ||
uaa->subclass != UISUBCLASS_ABSTRACT_CONTROL_MODEL ||
!(uaa->proto == UIPROTO_CDC_NOCLASS || uaa->proto == UIPROTO_CDC_AT))
return (UMATCH_NONE);
- id = usbd_get_interface_descriptor(uaa->iface);
if (umodem_get_caps(uaa->device, &cm, &acm, id) == -1)
return (UMATCH_NONE);
Home |
Main Index |
Thread Index |
Old Index