Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src Pull up the following revisions(s) (requested by riz in t...



details:   https://anonhg.NetBSD.org/src/rev/1944d7255753
branches:  netbsd-6
changeset: 774225:1944d7255753
user:      sborrill <sborrill%NetBSD.org@localhost>
date:      Thu Jun 14 09:48:44 2012 +0000

description:
Pull up the following revisions(s) (requested by riz in ticket #326):
        distrib/sets/lists/base/mi:             1.989
        distrib/sets/lists/man/mi:              1.1385
        etc/mtree/NetBSD.dist.base:             1.99
        share/man/man4/Makefile:                1.583
        share/man/man4/urtwn.4:                 1.1
        share/man/man4/usb.4:                   1.97
        sys/arch/amd64/conf/GENERIC:            1.351
        sys/arch/i386/conf/GENERIC:             1.1068
        sys/dev/usb/files.usb:                  1.121
        sys/dev/usb/if_urtwn.c:                 1.1-1.4
        sys/dev/usb/if_urtwn_data.h:            1.1
        sys/dev/usb/if_urtwnreg.h:              1.1
        sys/dev/usb/if_urtwnvar.h:              1.1
        sys/dev/usb/usbdevices.config:          1.13
        sys/dev/usb/usbdevs:                    1.621 via patch
        sys/dev/usb/usbdevs.h:                  regen
        sys/dev/usb/usbdevs_data.h:             regen
        sys/modules/if_urtwn/Makefile:          1.1
        sys/modules/if_urtwn/if_urtwn.ioconf:   1.1

Add support for urtwn(4) wireless. Ported from OpenBSD

diffstat:

 distrib/sets/lists/base/mi           |     3 +-
 distrib/sets/lists/man/mi            |     5 +-
 etc/mtree/NetBSD.dist.base           |     3 +-
 share/man/man4/Makefile              |     4 +-
 share/man/man4/urtwn.4               |   192 +
 share/man/man4/usb.4                 |     4 +-
 sys/arch/amd64/conf/GENERIC          |     5 +-
 sys/arch/i386/conf/GENERIC           |     5 +-
 sys/dev/usb/files.usb                |     7 +-
 sys/dev/usb/if_urtwn.c               |  3890 ++++++++++++++++++++++++++++++++++
 sys/dev/usb/if_urtwn_data.h          |   730 ++++++
 sys/dev/usb/if_urtwnreg.h            |  1013 ++++++++
 sys/dev/usb/if_urtwnvar.h            |   179 +
 sys/dev/usb/usbdevices.config        |     4 +-
 sys/dev/usb/usbdevs                  |    58 +-
 sys/modules/if_urtwn/Makefile        |    13 +
 sys/modules/if_urtwn/if_urtwn.ioconf |    10 +
 17 files changed, 6109 insertions(+), 16 deletions(-)

diffs (truncated from 6419 to 300 lines):

diff -r 5fd976411d48 -r 1944d7255753 distrib/sets/lists/base/mi
--- a/distrib/sets/lists/base/mi        Wed Jun 13 19:45:04 2012 +0000
+++ b/distrib/sets/lists/base/mi        Thu Jun 14 09:48:44 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.984.2.5 2012/06/05 15:49:12 jdc Exp $
+# $NetBSD: mi,v 1.984.2.6 2012/06/14 09:48:44 sborrill Exp $
 #
 # Note:        Don't delete entries from here - mark them as "obsolete" instead,
 #      unless otherwise stated below.
@@ -182,6 +182,7 @@
 ./libdata/firmware/rum/rum-license             base-firmware-root
 ./libdata/firmware/rum/rum-rt2573              base-firmware-root
 ./libdata/firmware/upgt                                base-firmware-root
+./libdata/firmware/urtwn                       base-firmware-root
 ./libdata/firmware/zyd                         base-firmware-root
 ./libdata/firmware/zyd/zd1211-licence          base-obsolete                   obsolete
 ./libdata/firmware/zyd/zd1211-license          base-firmware-root
diff -r 5fd976411d48 -r 1944d7255753 distrib/sets/lists/man/mi
--- a/distrib/sets/lists/man/mi Wed Jun 13 19:45:04 2012 +0000
+++ b/distrib/sets/lists/man/mi Thu Jun 14 09:48:44 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1379.2.5 2012/06/05 15:37:22 jdc Exp $
+# $NetBSD: mi,v 1.1379.2.6 2012/06/14 09:48:44 sborrill Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -1717,6 +1717,7 @@
 ./usr/share/man/cat4/url.0                     man-sys-catman          .cat
 ./usr/share/man/cat4/urlphy.0                  man-sys-catman          .cat
 ./usr/share/man/cat4/urndis.0                  man-sys-catman          .cat
+./usr/share/man/cat4/urtwn.0                   man-sys-catman          .cat
 ./usr/share/man/cat4/usb.0                     man-sys-catman          .cat
 ./usr/share/man/cat4/usbtask.0                 man-sys-catman          .cat
 ./usr/share/man/cat4/uscanner.0                        man-sys-catman          .cat
@@ -4512,6 +4513,7 @@
 ./usr/share/man/html4/url.html                 man-sys-htmlman         html
 ./usr/share/man/html4/urlphy.html              man-sys-htmlman         html
 ./usr/share/man/html4/urndis.html              man-sys-htmlman         html
+./usr/share/man/html4/urtwn.html               man-sys-htmlman         html
 ./usr/share/man/html4/usb.html                 man-sys-htmlman         html
 ./usr/share/man/html4/usbtask.html             man-sys-htmlman         html
 ./usr/share/man/html4/uscanner.html            man-sys-htmlman         html
@@ -7234,6 +7236,7 @@
 ./usr/share/man/man4/url.4                     man-sys-man             .man
 ./usr/share/man/man4/urlphy.4                  man-sys-man             .man
 ./usr/share/man/man4/urndis.4                  man-sys-man             .man
+./usr/share/man/man4/urtwn.4                   man-sys-man             .man
 ./usr/share/man/man4/usb.4                     man-sys-man             .man
 ./usr/share/man/man4/usbtask.4                 man-sys-man             .man
 ./usr/share/man/man4/uscanner.4                        man-sys-man             .man
diff -r 5fd976411d48 -r 1944d7255753 etc/mtree/NetBSD.dist.base
--- a/etc/mtree/NetBSD.dist.base        Wed Jun 13 19:45:04 2012 +0000
+++ b/etc/mtree/NetBSD.dist.base        Thu Jun 14 09:48:44 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: NetBSD.dist.base,v 1.97 2012/02/14 14:03:35 wiz Exp $
+#      $NetBSD: NetBSD.dist.base,v 1.97.2.1 2012/06/14 09:48:46 sborrill Exp $
 #      @(#)4.4BSD.dist 8.1 (Berkeley) 6/13/93
 
 # Do not customize this file as it may be overwritten on upgrades.
@@ -71,6 +71,7 @@
 ./libdata/firmware/ral
 ./libdata/firmware/rum
 ./libdata/firmware/upgt
+./libdata/firmware/urtwn
 ./libdata/firmware/zyd
 ./libexec
 ./libexec/dhcpcd-hooks
diff -r 5fd976411d48 -r 1944d7255753 share/man/man4/Makefile
--- a/share/man/man4/Makefile   Wed Jun 13 19:45:04 2012 +0000
+++ b/share/man/man4/Makefile   Thu Jun 14 09:48:44 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.581.2.1 2012/04/23 16:31:36 riz Exp $
+#      $NetBSD: Makefile,v 1.581.2.2 2012/06/14 09:48:46 sborrill Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/18/93
 
 MAN=   aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -75,7 +75,7 @@
        ucycom.4 udav.4 udsbr.4 uftdi.4 ugen.4 ugensa.4 uhci.4 uhid.4 \
        uhidev.4 uhmodem.4 uhso.4 uipaq.4 uirda.4 ukbd.4 ukyopon.4 ulpt.4 \
        umass.4 umct.4 umidi.4 umodem.4 ums.4 upgt.4 upl.4 uplcom.4 \
-       urio.4 url.4 urndis.4 usb.4 uscanner.4 uslsa.4 usscanner.4 \
+       urio.4 url.4 urndis.4 urtwn.4 usb.4 uscanner.4 uslsa.4 usscanner.4 \
        ustir.4 uthum.4 utoppy.4 uts.4 uvideo.4 uvisor.4 uvscom.4 uyap.4 \
        uyurex.4
 
diff -r 5fd976411d48 -r 1944d7255753 share/man/man4/urtwn.4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/man/man4/urtwn.4    Thu Jun 14 09:48:44 2012 +0000
@@ -0,0 +1,192 @@
+.\" $NetBSD: urtwn.4,v 1.4.2.2 2012/06/14 09:48:46 sborrill Exp $
+.\" $OpenBSD: urtwn.4,v 1.15 2011/11/26 06:39:33 ckuethe Exp $
+.\"
+.\" Copyright (c) 2010 Damien Bergamini <damien.bergamini%free.fr@localhost>
+.\"
+.\" 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.
+.\"
+.Dd $Mdocdate: November 26 2011 $
+.Dt URTWN 4
+.Os
+.Sh NAME
+.Nm urtwn
+.Nd Realtek RTL8188CU/RTL8192CU USB IEEE 802.11b/g/n wireless network device
+.Sh SYNOPSIS
+.Cd "urtwn* at uhub? port ?"
+.Sh DESCRIPTION
+The
+.Nm
+driver supports USB 2.0 wireless network devices based on Realtek
+RTL8188CUS, RTL8188CE-VAU, RTL8188RU and RTL8192CU chipsets.
+.Pp
+The RTL8188CUS is a highly integrated 802.11n adapter that combines
+a MAC, a 1T1R capable baseband and an RF in a single chip.
+It operates in the 2GHz spectrum only.
+The RTL8188RU is a high-power variant of the RTL8188CUS.
+The RTL8188CE-VAU is a PCI Express Mini Card adapter that attaches
+to the USB interface.
+.Pp
+The RTL8192CU is a highly integrated multiple-in, multiple-out (MIMO)
+802.11n adapter that combines a MAC, a 2T2R capable baseband and an
+RF in a single chip.
+It operates in the 2GHz spectrum only.
+.Pp
+These are the modes the
+.Nm
+driver can operate in:
+.Bl -tag -width "IBSS-masterXX"
+.It BSS mode
+Also known as
+.Em infrastructure
+mode, this is used when associating with an access point, through
+which all traffic passes.
+This mode is the default.
+.It monitor mode
+In this mode the driver is able to receive packets without
+associating with an access point.
+This disables the internal receive filter and enables the card to
+capture packets from networks which it wouldn't normally have access to,
+or to scan for access points.
+.El
+.Pp
+The
+.Nm
+driver can be configured to use
+Wired Equivalent Privacy (WEP) or
+Wi-Fi Protected Access (WPA-PSK and WPA2-PSK).
+WPA is the de facto encryption standard for wireless networks.
+It is strongly recommended that WEP
+not be used as the sole mechanism
+to secure wireless communication,
+due to serious weaknesses in it.
+.Pp
+The
+.Nm
+driver can be configured at runtime with
+.Xr ifconfig 8
+or on boot with
+.Xr ifconfig.if 5 .
+.Sh FILES
+The driver needs at least version 1.1p0 of the following firmware files,
+which are loaded when an interface is attached:
+.Pp
+.Bl -tag -width Ds -offset indent -compact
+.It /libdata/firmware/urtwn/urtwn-rtl8192cfwT
+.It /libdata/firmware/urtwn/urtwn-rtl8192cfwU
+.It /libdata/firmware/urtwn/urtwn-rtl8723fw
+.El
+.Pp
+A prepackaged version of the firmware, designed to be used with
+.Xr pkg_add 1 ,
+can be found at:
+.Bd -literal -offset 3n
+http://firmware.openbsd.org/firmware/urtwn-firmware-1.1p0.tgz
+.Ed
+.Sh HARDWARE
+The following adapters should work:
+.Pp
+.Bl -tag -width Ds -offset indent -compact
+.It Airlink101 AWLL5088
+.It Aus. Linx AL-9604R1S
+.It B-Link BL-LW05-5R
+.It Belkin F7D1102 Surf Wireless Micro
+.It D-Link DWA-121
+.It D-Link DWA-133
+.It D-Link DWA-135
+.It Digitus DN-7042
+.It Edimax EW-7811Un
+.It EDUP EP-N8508
+.It Full River FR-W100NUL
+.It Hercules Wireless N USB Pico HWNUp-150
+.It Netgear WNA1000A
+.It Planex GW-USEco300
+.It Planex GW-USNano2
+.It Planex GW-USValue-EZ
+.It Planex GW-USWExtreme
+.It POWCHIP POW-N18
+.It Sitecom WL-365
+.It Solwise NET-WL-UMD-606N
+.It TRENDnet TEW-648UBM
+.El
+.Sh EXAMPLES
+The following
+.Xr ifconfig.if 5
+example configures urtwn0 to join whatever network is available on boot,
+using WEP key
+.Dq 0x1deadbeef1 ,
+channel 11, obtaining an IP address using DHCP:
+.Bd -literal -offset indent
+nwkey 0x1deadbeef1 chan 11
+dhcp
+.Ed
+.Pp
+Configure urtwn0 to join network
+.Dq my_net
+using WPA with passphrase
+.Dq my_passphrase :
+.Bd -literal -offset indent
+# ifconfig urtwn0 nwid my_net wpakey my_passphrase
+.Ed
+.Pp
+Join an existing BSS network,
+.Dq my_net :
+.Bd -literal -offset indent
+# ifconfig urtwn0 192.168.1.1 netmask 0xffffff00 nwid my_net
+.Ed
+.Sh DIAGNOSTICS
+.Bl -diag
+.It "urtwn%d: error %d, could not read firmware %s"
+For some reason, the driver was unable to read the microcode file from the
+filesystem.
+The file might be missing or corrupted.
+.It "urtwn%d: device timeout"
+A frame dispatched to the hardware for transmission did not complete in time.
+The driver will reset the hardware.
+This should not happen.
+.El
+.Sh SEE ALSO
+.Xr arp 4 ,
+.Xr netintro 4 ,
+.Xr usb 4 ,
+.Xr ifconfig.if 5 ,
+.Xr wpa_supplicant.conf 5 ,
+.Xr ifconfig 8 ,
+.Xr wpa_supplicant 8
+.Sh HISTORY
+The
+.Nm
+device driver first appeared in
+.Ox 4.9
+and in
+.Nx 7.0 .
+.Sh AUTHORS
+The
+.Nm
+driver was written by
+.An Damien Bergamini
+.Aq damien%openbsd.org@localhost
+for
+.Ox
+and ported to
+.Nx
+by
+.An NONAKA Kimihiro
+.Aq nonaka%netbsd.org@localhost .
+.Sh CAVEATS
+The
+.Nm
+driver does not support any of the 802.11n capabilities offered by the
+adapters.
+Additional work is required in
+.Xr ieee80211 9
+before those features can be supported.
diff -r 5fd976411d48 -r 1944d7255753 share/man/man4/usb.4
--- a/share/man/man4/usb.4      Wed Jun 13 19:45:04 2012 +0000
+++ b/share/man/man4/usb.4      Thu Jun 14 09:48:44 2012 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: usb.4,v 1.96 2012/01/22 14:15:43 wiz Exp $
+.\" $NetBSD: usb.4,v 1.96.2.1 2012/06/14 09:48:46 sborrill Exp $
 .\"
 .\" Copyright (c) 1999-2008 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -150,6 +150,8 @@
 USB Bluetooth dongles
 .It Xr upgt 4
 Conexant/Intersil PrismGT SoftMAC USB 802.11b/g wireless network device
+.It Xr urtwn 4
+Realtek RTL8188CU/RTL8192CU USB IEEE 802.11b/g/n wireless network device
 .It Xr zyd 4
 ZyDAS ZD1211/ZD1211B USB IEEE 802.11b/g wireless network device
 .El
diff -r 5fd976411d48 -r 1944d7255753 sys/arch/amd64/conf/GENERIC



Home | Main Index | Thread Index | Old Index