From owner-freebsd-usb@FreeBSD.ORG Wed Jan 21 07:21:50 2009 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 03125106566C; Wed, 21 Jan 2009 07:21:50 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mx1.freebsd.org (Postfix) with ESMTP id B8FAE8FC1A; Wed, 21 Jan 2009 07:21:49 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3627351rvf.43 for ; Tue, 20 Jan 2009 23:21:49 -0800 (PST) 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=kKf9Um5j4wYdB/AOabcyfionl6krzYJu6qRByTmzTTg=; b=dMTJY1/vRYyGZ5Xi34UXUoRrS+iqlsQTL2Shnt6JZOugW2FDmjU/4I2OdJsf/H3IK3 qp0R3KuFGugKxswL/Z/gnvQffTTREcuD9oPCs437xa62Dx6juYwipLlbCzEAekfo2fKb 7jaW5b/K4kgrkX0JwurBFoQtqObUQ5nalqa9I= 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=FTff7l7i2EU3O9DdLYS8xRhclAZqZi5hjq77HZn/7y0KjeE/fjJZJlMrNy3yJWN6xf hB4/gKRyfwFdRliTZHJPQc74TUHuZ65y8V8i3fljDjUm3FgPz/OFGkuUcFUDFVF6O1Ex D3g8qLtoFhKpiwiVLDjV1Pia49CeBGnQV6YJY= Received: by 10.140.157.1 with SMTP id f1mr3515204rve.196.1232522509446; Tue, 20 Jan 2009 23:21:49 -0800 (PST) Received: from freebsd.weongyo.org ([211.53.35.67]) by mx.google.com with ESMTPS id g14sm5883232rvb.0.2009.01.20.23.21.45 (version=SSLv3 cipher=RC4-MD5); Tue, 20 Jan 2009 23:21:48 -0800 (PST) Received: by freebsd.weongyo.org (sSMTP sendmail emulation); Wed, 21 Jan 2009 16:21:17 +0900 From: Weongyo Jeong Date: Wed, 21 Jan 2009 16:21:17 +0900 To: Kevin Lo Message-ID: <20090121072117.GA46438@freebsd.weongyo.org> Mail-Followup-To: Kevin Lo , current@freebsd.org, freebsd-usb@freebsd.org References: <20090119112333.GA36305@freebsd.weongyo.org> <1232519898.26154.11.camel@srg.kevlo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1232519898.26154.11.camel@srg.kevlo.org> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: HEADSUP: urtw(4) to be committed soon X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2009 07:21:50 -0000 On Wed, Jan 21, 2009 at 02:38:18PM +0800, Kevin Lo wrote: > Weongyo Jeong wrote: > > Hello, > > Hi Weongyo, > > > I would like to commit urtw(4) driver for supporting Realtek's 8187L > > wireless chipset based on USB into HEAD by the end of the week if there > > are no objections. And the license of files would be as follows that > > AFAIK it's based on OpenBSD's template license file: > > > > /*- > > * Copyright (c) 2008 Weongyo Jeong > > * > > * Permission to use, copy, modify, and distribute this software for any > > * purpose with or without fee is hereby granted, provided that the above > > * copyright notice and this permission notice appear in all copies. > > * > > * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES > > * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF > > * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR > > * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES > > * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN > > * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF > > * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. > > */ > > > > Because I'm not a lawyer it'd definitely fail to answer about your > > detailed questions. Just one thing I want to is that it's okay if it's > > enough to use in *BSD, OpenSolaris and etc. Not want to go into > > troubles. :-) > > > > I'm looking for a person to port from USB to NEWUSB and if you want to > > test you can find the sources at: > > > > http://people.freebsd.org/~weongyo/urtw_20090119.tar.gz > > > Works for me, thanks. Though it's quite a bit slower, that's a job > for another day :-) > > $ dmesg | grep urtw0 > urtw0: 2> on uhub0 > urtw0: WARNING: using obsoleted IFF_NEEDSGIANT flag > > $ ifconfig > plip0: flags=108810 metric 0 > mtu 1500 > lo0: flags=8049 metric 0 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > urtw0: flags=108843 > metric 0 mtu 2290 > ether 00:40:0c:04:3b:2a > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > wlan0: flags=8843 metric 0 mtu > 1500 > ether 00:40:0c:04:3b:2a > inet 192.168.1.116 netmask 0xffffff00 broadcast 192.168.1.255 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > ssid MSI channel 11 (2462 Mhz 11g) bssid 00:11:09:0c:2f:91 > country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid > 60 > bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5 > protmode CTS Thank you for testing. :-) The performance issue is a known issue that I think we need to fix a rate control routine for urtw(4). I tried to use wlan_amrr(4) but concluded it's hard to apply it without documents because I couldn't find a flag whether the tx is failed or not. It looks it's not enough with just looking USB_STATUS value of usb callbacks. regards, Weongyo Jeong