From owner-cvs-src-old@FreeBSD.ORG Sun Oct 18 00:12:10 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6F141065692 for ; Sun, 18 Oct 2009 00:12:10 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D45078FC1F for ; Sun, 18 Oct 2009 00:12:10 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9I0CAwg079915 for ; Sun, 18 Oct 2009 00:12:10 GMT (envelope-from weongyo@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9I0CATH079914 for cvs-src-old@freebsd.org; Sun, 18 Oct 2009 00:12:10 GMT (envelope-from weongyo@repoman.freebsd.org) Message-Id: <200910180012.n9I0CATH079914@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to weongyo@repoman.freebsd.org using -f From: Weongyo Jeong Date: Sun, 18 Oct 2009 00:11:49 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/usb/wlan if_urtw.c if_urtwreg.h if_urtwvar.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2009 00:12:11 -0000 weongyo 2009-10-18 00:11:49 UTC FreeBSD src repository Modified files: sys/dev/usb/wlan if_urtw.c if_urtwreg.h if_urtwvar.h Log: SVN rev 198194 on 2009-10-18 00:11:49Z by weongyo overhauls urtw(4) for supporting RTL8187B devices properly that there was major changes to initialize RF chipset and set H/W registers and removed a lot of magic numbers on code. Details are as follows: - uses the endpoint 0x89 to get TX status information which used to get TX complete or retry numbers or get a beacon interrupt. It's only valuable for RTL8187B. - removes urtw_write[8|16|32]_i functions that it's useless now. - uses ic->ic_updateslot to set SLOT, SIFS, DIES, EIFS, CW_VAL registers that doesn't set these whenever the channel is changed. - code for initializing RF chipset for RTL8187B changed a lot that there was many problems on TX transfers so it doesn't work properly even if just for a ping/pong. Now it becomes more stable than before that TX throughputs using netperf(1) were about 15 ~ 17Mbps/s though sometimes it encounters packet losses. - removes a lot of magic numbers that in the previous all of representing RX and TX descriptors were consisted of magic numbers and structures. It'd be more readable rather than before. - calculates TX duration more accurately for urtw(4) devices. - style(9) Revision Changes Path 1.13 +508 -356 src/sys/dev/usb/wlan/if_urtw.c 1.2 +143 -14 src/sys/dev/usb/wlan/if_urtwreg.h 1.4 +7 -1 src/sys/dev/usb/wlan/if_urtwvar.h