From owner-freebsd-usb@FreeBSD.ORG Fri Oct 1 13:02:30 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BED181065697; Fri, 1 Oct 2010 13:02:30 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 160D88FC2A; Fri, 1 Oct 2010 13:02:29 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=sEolSJAlcSxSMaOm1MQ0bvrIu+BNAN+OqG2UAUgC4Ok= c=1 sm=1 a=MfZI9uxp4N4A:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=mZuUDjAiAAAA:8 a=2BGOgP4RRmpb0zQIb30A:9 a=sWM0_so6nlEEhxz6VOcA:7 a=dwQ3YRkdoxl9ELGHUiCzIg3p7wAA:4 a=PUjeQqilurYA:10 a=KlGHixcjFZ8A:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 29158020; Fri, 01 Oct 2010 15:02:28 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Fri, 1 Oct 2010 15:03:42 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201009271136.o8RBag1N057612@www.freebsd.org> In-Reply-To: <201009271136.o8RBag1N057612@www.freebsd.org> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201010011503.42100.hselasky@c2i.net> Cc: freebsd-gnats-submit@freebsd.org, Anil Gulati Subject: Re: usb/150989: [patch] Add Netgear WG111V2_2 support to upgt(4) 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: Fri, 01 Oct 2010 13:02:30 -0000 On Monday 27 September 2010 13:36:42 Anil Gulati wrote: > >Number: 150989 > >Category: usb > >Synopsis: [patch] Add Netgear WG111V2_2 support to upgt(4) > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: update > >Submitter-Id: current-users > >Arrival-Date: Mon Sep 27 11:40:00 UTC 2010 > >Closed-Date: > >Last-Modified: > >Originator: Anil Gulati > >Release: FreeBSD 8.1 CURRENT > > >Organization: > Anil Gulati > > >Environment: > FreeBSD engine.local 8.1-BETA1 FreeBSD 8.1-BETA1 #0: Thu Aug 26 22:45:23 > EST 2010 root@engine.local:/usr/obj/usr/src/sys/VESAKERN i386 > > >Description: > Some Netgear USB wireless adapter devices are labelled WG111V2 externally > but are actually WG111V2_2 devices as listed in /sys/dev/usb/usbdevs. > > These devices are not recognised by FreeBSD 8.1 since they are not listed > as supported. > > Booting with this USB device inserted will result in the device being > recognised as a default USB device, not an actual wireless adapter. > > >How-To-Repeat: > Plug in a Netgear WG111V2_2 USB wireless adapter and boot. > Not all devices labelled WG111V2 are actually WG111V2_2. > WG111V2_2 devices will not be recognised as a network device but will use > the default USB device. My device of this type is externally labelled > WG111V2 but is revealed as WG111V2_2 by the usbconfig output: > > $ usbconfig -u 4 -a 2 dump_device_desc > ugen4.2: at usbus4, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0846 > idProduct = 0x4240 > bcdDevice = 0x1020 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <3887-0000> > bNumConfigurations = 0x0001 > > >Fix: > WG111V2_2 devices use the GW3887 chipset and therefore need the PrismGT driver upgt rather than the urtw driver used for all other Netgear WG111 devices: > > cat /sys/dev/usb/usbdevs | grep WG111V2_2 > > product NETGEAR WG111V2_2 0x4240 PrismGT USB 2.0 WLAN > > WG111V2_2 is not listed as a device supported by upgt in > /sys/dev/usb/wlan/if_upgt.c, so it needs to be added: UPGT_DEV(NETGEAR, > WG111V2_2), > > Attached patch provides this update. > > Thread demonstrating this as it was worked out: > http://www.daemonforums.org/showthread.php?t=5108 > > Patch attached with submission follows: > > --- /sys/dev/usb/wlan/if_upgt.c.orig 2009-08-03 00:00:00.000000000 +1000 > +++ /sys/dev/usb/wlan/if_upgt.c 2010-09-22 00:00:00.000000000 +1000 > @@ -182,6 +182,7 @@ > UPGT_DEV(FSC, E5400), > UPGT_DEV(GLOBESPAN, PRISM_GT_1), > UPGT_DEV(GLOBESPAN, PRISM_GT_2), > + UPGT_DEV(NETGEAR, WG111V2_2), > UPGT_DEV(INTERSIL, PRISM_GT), > UPGT_DEV(SMC, 2862WG), > UPGT_DEV(WISTRONNEWEB, UR045G), > > >Release-Note: > >Audit-Trail: > > >Unformatted: See USB P4 change #184338. --HPS