From owner-freebsd-usb@FreeBSD.ORG Wed Nov 10 21:28:37 2010 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 511A5106564A; Wed, 10 Nov 2010 21:28:37 +0000 (UTC) (envelope-from dd@freebsd.org) Received: from postie.trit.net (postie.trit.net [208.90.32.17]) by mx1.freebsd.org (Postfix) with ESMTP id 3D4DF8FC14; Wed, 10 Nov 2010 21:28:37 +0000 (UTC) Received: from crouton.trit.net (alice.qvzn.com [208.75.88.199]) by postie.trit.net (Postfix) with ESMTPSA id 239659BAF81; Wed, 10 Nov 2010 21:09:54 +0000 (UTC) Received: by crouton.trit.net (Postfix, from userid 501) id 201742D20A5; Wed, 10 Nov 2010 16:09:53 -0500 (EST) From: Dima Dorfman To: Nick Hibma Date: Wed, 10 Nov 2010 16:09:53 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: usb@freebsd.org Subject: Patch - u3g support for Huawei K3765 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, 10 Nov 2010 21:28:37 -0000 --=-=-= Hello, I have a Vodafone-branded HUAWEI K3765 datacard, which should be supported by the u3g driver, but my unit needs some extra help to work. I'm not sure if this applies to all K3765s or if mine (or vodafone's) is special in some way. The special init product ID looks a little unusual, but it's exactly what the OpenBSD umsm driver does Nick, does this look good to you? Patch is attached Thanks, -- Dima --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=u3g-k3765.diff Index: serial/u3g.c =================================================================== --- serial/u3g.c (revision 215101) +++ serial/u3g.c (working copy) @@ -288,6 +288,7 @@ U3G_DEV(HUAWEI, MOBILE, U3GINIT_HUAWEI), U3G_DEV(HUAWEI, E1752, U3GINIT_HUAWEISCSI), U3G_DEV(HUAWEI, K3765, U3GINIT_HUAWEI), + U3G_DEV(HUAWEI, K3765_INIT, U3GINIT_HUAWEISCSI), U3G_DEV(KYOCERA2, CDMA_MSM_K, 0), U3G_DEV(KYOCERA2, KPC680, 0), U3G_DEV(LONGCHEER, WM66, U3GINIT_HUAWEI), Index: usbdevs =================================================================== --- usbdevs (revision 215101) +++ usbdevs (working copy) @@ -1857,6 +1857,7 @@ product HUAWEI E1752 0x1446 3G modem product HUAWEI K3765 0x1465 3G modem product HUAWEI E14AC 0x14ac 3G modem +product HUAWEI K3765_INIT 0x1520 HUAWEI Mobile K3765 Initial /* HUAWEI 3com products */ product HUAWEI3COM WUB320G 0x0009 Aolynk WUB320g --=-=-=--