From owner-freebsd-usb@FreeBSD.ORG Wed Sep 26 16:44:39 2007 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E980016A418 for ; Wed, 26 Sep 2007 16:44:39 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.166]) by mx1.freebsd.org (Postfix) with ESMTP id 5F4D013C4A7 for ; Wed, 26 Sep 2007 16:44:38 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by grosbein.pp.ru (8.14.1/8.14.1) with ESMTP id l8QGiSH2006791; Thu, 27 Sep 2007 00:44:28 +0800 (KRAST) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.14.1/8.14.1/Submit) id l8QGiRGa006790; Thu, 27 Sep 2007 00:44:27 +0800 (KRAST) (envelope-from eugen) Date: Thu, 27 Sep 2007 00:44:27 +0800 From: Eugene Grosbein To: usb@freebsd.org Message-ID: <20070926164427.GA6746@grosbein.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070925.231043.-345497328.imp@bsdimp.com> User-Agent: Mutt/1.4.2.2i Cc: Subject: Re: usb/91546: [umodem] [patch] Nokia 6630 mobile phone does not work X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2007 16:44:40 -0000 Hi! sys/dev/usb/if_cdce.c has the following comment: /* * * The Data Class interface of a networking device shall have a minimum * of two interface settings. The first setting (the default interface * setting) includes no endpoints and therefore no networking traffic is * exchanged whenever the default interface setting is selected. One or * more additional interface settings are used for normal operation, and * therefore each includes a pair of endpoints (one IN, and one OUT) to * exchange network traffic. Select an alternate interface setting to * initialize the network aspects of the device and to enable the * exchange of network traffic. * * * Some devices, most notably cable modems, include interface settings * that have no IN or OUT endpoint, therefore loop through the list of all * available interface settings looking for one with both IN and OUT * endpoints. */ I've added the loop that follows this comment to umodem.c and found that Nokia E50 returns exactly one additional interface, e.g. usbd_get_no_alts() returns 1. And this interface description has id->bNumEndpoints equal to zero, so there is no IN/OUT endpoint. At all. Here I'm stuck. Eugene Grosbein