Date: Sun, 18 Oct 2009 00:11:49 +0000 (UTC) From: Weongyo Jeong <weongyo@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/usb/wlan if_urtw.c if_urtwreg.h if_urtwvar.h Message-ID: <200910180012.n9I0CATH079914@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910180012.n9I0CATH079914>
