From owner-freebsd-current@FreeBSD.ORG Tue May 19 05:07:07 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7E9F1065670; Tue, 19 May 2009 05:07:07 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.232]) by mx1.freebsd.org (Postfix) with ESMTP id 69C518FC17; Tue, 19 May 2009 05:07:07 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by rv-out-0506.google.com with SMTP id k40so2086111rvb.43 for ; Mon, 18 May 2009 22:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:organization:x-operation-sytem; bh=0rQd6Rfby+qViaW7Q5isBjSu65N7MByWR7VqkxSnu2A=; b=Uht47GtvCI13OAVGfgcq9n6IaUja1JFmJ1QLq/85GOnkyflMF+tDCNFf4FcynO4f6L GtubaidVgOOWpRYxKf2otH4nho5wiBXiZD+NjXJgMfVcyTOMlb7ROnbHqXXkr0sJmSHr nVOt9i6+fpMoYnQRrcpmGD9V6Kw3U6jyQzZTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:organization:x-operation-sytem; b=HI0uhRuGB/5NQLl1ip8xCeqbZpK/pLq8BSe54WtTSJENPZUObpaNgRO7unZ2NKhNuK 5qrjsXSCsXwwAAPFdNn2sbV7hRZaS0HKMViitaGZjJrcQrBS+k0CrAmvn5dZxo9/kdCg Ksj5ETtj+w4uv9gsyE07Q6ey/qqaJdNZKIozM= Received: by 10.141.28.4 with SMTP id f4mr2631226rvj.164.1242709298631; Mon, 18 May 2009 22:01:38 -0700 (PDT) Received: from weongyo ([114.111.62.249]) by mx.google.com with ESMTPS id f21sm15304181rvb.5.2009.05.18.22.01.36 (version=SSLv3 cipher=RC4-MD5); Mon, 18 May 2009 22:01:37 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Tue, 19 May 2009 14:01:33 +0900 From: Weongyo Jeong Date: Tue, 19 May 2009 14:01:32 +0900 To: Sam Leffler Message-ID: <20090519050132.GE42412@weongyo.cdnetworks.kr> Mail-Followup-To: Sam Leffler , Lucius Windschuh , current@freebsd.org References: <20090407022956.GA71377@weongyo.cdnetworks.kr> <90a5caac0905161502x3771072n22d58111a235de24@mail.gmail.com> <4A0F419A.2020700@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A0F419A.2020700@freebsd.org> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: Lucius Windschuh , current@freebsd.org Subject: Re: HEADSUP: uath(4) has been committed. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2009 05:07:08 -0000 On Sat, May 16, 2009 at 03:43:38PM -0700, Sam Leffler wrote: > Lucius Windschuh wrote: > > 2009/4/7 Weongyo Jeong > > > >> Hello, > >> > >> FYI uath(4) driver has been committed into HEAD. To work with uath(4) > >> it needs to load the firmware using uathload. The example would be as > >> follows: > >> > >> # kldload if_uath > >> [plugin Atheros USB stick] > >> ugen0.2: at usbus0 > >> # uathload -d /dev/ugen0.2 > >> [after downloading the firmware it'll retry to attach] > >> # ifconfig uath0 > >> > >> Normally uathload could be found at /usr/sbin or > >> /usr/src/usr.sbin/uathload for sources and if you don't want to execute > >> uathload by hand it'd be better to add a entry into devd.conf(5). > > > > Thanks for porting the driver. > > This is not a port of anyone else's driver. > > > > I tried it with a TRENDnet TEW-504UB/EU on CURRENT as of today. > > But there are a couple of problems with that device: > > 1. Different product ID > > My TEW-504UB/EU becomes 0x3207 after loading the firmware. OK, this one is > > easy to fix: > > Index: sys/dev/usb/usbdevs > > =================================================================== > > --- sys/dev/usb/usbdevs (revision 192196) > > +++ sys/dev/usb/usbdevs (working copy) > > @@ -2425,6 +2425,7 @@ > > product UMEDIA ALL0298V2 0x3204 ALL0298 v2 > > product UMEDIA AR5523_2 0x3205 AR5523 > > product UMEDIA AR5523_2_NF 0x3206 AR5523 (no firmware) > > +product UMEDIA AR5523_3 0x3207 AR5523 > > > > /* Universal Access products */ > > product UNIACCESS PANACHE 0x0101 Panache Surf USB ISDN Adapter > > Index: sys/dev/usb/wlan/if_uath.c > > =================================================================== > > --- sys/dev/usb/wlan/if_uath.c (revision 192196) > > +++ sys/dev/usb/wlan/if_uath.c (working copy) > > @@ -192,6 +192,7 @@ > > UATH_DEV(NETGEAR3, WPN111), > > UATH_DEV(UMEDIA, TEW444UBEU), > > UATH_DEV(UMEDIA, AR5523_2), > > + UATH_DEV(UMEDIA, AR5523_3), > > UATH_DEV(WISTRONNEWEB, AR5523_1), > > UATH_DEV(WISTRONNEWEB, AR5523_2), > > UATH_DEV(ZCOM, AR5523) > > > > I don't know why this device has another product ID with a loaded firmware, > > but perhaps because it is an 802.11a capable device? > > The device works by changing identity once the firmware is downloaded. > One id is for the stick w/o fw and one for the stick w/ fw loaded and > running. > > > BTW: the vendor's firmware leads to the known ID (0x3205), but uath bails > > out: > > uath0: timeout waiting for reply to cmd 0x1 (1) > > uath0: could not initialize adapter > > device_attach: uath0 attach returned 35 > > uath0: timeout waiting for reply to cmd 0x1 (1) > > uath0: could not initialize adapter > > device_attach: uath0 attach returned 35 > > ugen4.2: at usbus4 (disconnected) > > ugen4.2: at usbus4 > > You must use the freebsd fw w/ the freebsd driver. > > > > > So, now to the second problem: > > The device works like a charm in 802.11b/g mode (ifconfig wlan0 chanlist > > 1-13) with FreeBSD's firmware. > > But 802.11a scanning does not work. Without the chanlist restrictiong, I get > > the following messages: > > (plug in the device) > > ugen4.2: at usbus4 > > (uathload) > > ugen4.2: at usbus4 (disconnected) > > ugen4.2: at usbus4 > > (ifconfig wlan create wlandev uath0) > > wlan0: Ethernet address: 00:14:d1:c0:23:5f > > (ifconfig wlan0 up) > > uath0: uath_cmdsend: empty inactive queue > > uath0: could not init Tx queues, error 55 > > uath0: uath_cmdsend: empty inactive queue > > uath0: could not set channel, error 55 > > [...] > > uath0: could not set channel, error 55 > > uath0: uath_cmdsend: empty inactive queue > > uath0: could not write register 0x08 > > uath0: uath_cmdsend: empty inactive queue > > uath0: could not set channel, error 55 > > uath0: could not switch channel > > I'd like to provide additional debugging information. If you need more, > > please tell me what. > > Known problem. Weongoy didn't have a dual-band stick and I never had > time to track down why 5Ghz channels failed. > > > BTW: Could you add a message declaring the device when it is plugged in? > > Something like "uath0: on usbus?" > > and "uath0: ether aa:bb:cc:dd:ee:ff"? > > I thought it did this but perhaps not; we can try to add it. IIRC in the previous USB1, it printed a message like uath0: on usbus? whenever a device is attached even if the device source doesn't print it but it's not now in USB2. I have no ideas it's a intention or a regression of USB2. regards, Weongyo Jeong