1.\" $OpenBSD: urtwn.4,v 1.15 2011/11/26 06:39:33 ckuethe Exp $ 2.\" 3.\" Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: November 26 2011 $ 18.Dt URTWN 4 19.Os 20.Sh NAME 21.Nm urtwn 22.Nd Realtek RTL8188CU/RTL8192CU USB IEEE 802.11b/g/n wireless network device 23.Sh SYNOPSIS 24.Cd "urtwn* at uhub? port ?" 25.Sh DESCRIPTION 26The 27.Nm 28driver supports USB 2.0 wireless network devices based on Realtek 29RTL8188CUS, RTL8188CE-VAU, RTL8188RU and RTL8192CU chipsets. 30.Pp 31The RTL8188CUS is a highly integrated 802.11n adapter that combines 32a MAC, a 1T1R capable baseband and an RF in a single chip. 33It operates in the 2GHz spectrum only. 34The RTL8188RU is a high-power variant of the RTL8188CUS. 35The RTL8188CE-VAU is a PCI Express Mini Card adapter that attaches 36to the USB interface. 37.Pp 38The RTL8192CU is a highly integrated multiple-in, multiple-out (MIMO) 39802.11n adapter that combines a MAC, a 2T2R capable baseband and an 40RF in a single chip. 41It operates in the 2GHz spectrum only. 42.Pp 43These are the modes the 44.Nm 45driver can operate in: 46.Bl -tag -width "IBSS-masterXX" 47.It BSS mode 48Also known as 49.Em infrastructure 50mode, this is used when associating with an access point, through 51which all traffic passes. 52This mode is the default. 53.It monitor mode 54In this mode the driver is able to receive packets without 55associating with an access point. 56This disables the internal receive filter and enables the card to 57capture packets from networks which it wouldn't normally have access to, 58or to scan for access points. 59.El 60.Pp 61The 62.Nm 63driver can be configured to use 64Wired Equivalent Privacy (WEP) or 65Wi-Fi Protected Access (WPA-PSK and WPA2-PSK). 66WPA is the de facto encryption standard for wireless networks. 67It is strongly recommended that WEP 68not be used as the sole mechanism 69to secure wireless communication, 70due to serious weaknesses in it. 71.Pp 72The 73.Nm 74driver can be configured at runtime with 75.Xr ifconfig 8 76or on boot with 77.Xr hostname.if 5 . 78.Sh FILES 79The driver needs at least version 1.1p0 of the following firmware files, 80which are loaded when an interface is attached: 81.Pp 82.Bl -tag -width Ds -offset indent -compact 83.It /etc/firmware/urtwn-rtl8192cfwT 84.It /etc/firmware/urtwn-rtl8192cfwU 85.It /etc/firmware/urtwn-rtl8723fw 86.El 87.Pp 88A prepackaged version of the firmware, designed to be used with 89.Xr pkg_add 1 , 90can be found at: 91.Bd -literal -offset 3n 92http://firmware.openbsd.org/firmware/urtwn-firmware-1.1p0.tgz 93.Ed 94.Sh HARDWARE 95The following adapters should work: 96.Pp 97.Bl -tag -width Ds -offset indent -compact 98.It Airlink101 AWLL5088 99.It Aus. Linx AL-9604R1S 100.It B-Link BL-LW05-5R 101.It Belkin F7D1102 Surf Wireless Micro 102.It D-Link DWA-121 103.It D-Link DWA-133 104.It D-Link DWA-135 105.It Digitus DN-7042 106.It Edimax EW-7811Un 107.It EDUP EP-N8508 108.It Full River FR-W100NUL 109.It Hercules Wireless N USB Pico HWNUp-150 110.It Netgear WNA1000A 111.It Planex GW-USEco300 112.It Planex GW-USNano2 113.It Planex GW-USValue-EZ 114.It Planex GW-USWExtreme 115.It POWCHIP POW-N18 116.It Sitecom WL-365 117.It Solwise NET-WL-UMD-606N 118.It TRENDnet TEW-648UBM 119.El 120.Sh EXAMPLES 121The following 122.Xr hostname.if 5 123example configures urtwn0 to join whatever network is available on boot, 124using WEP key 125.Dq 0x1deadbeef1 , 126channel 11, obtaining an IP address using DHCP: 127.Bd -literal -offset indent 128dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11 129.Ed 130.Pp 131Configure urtwn0 to join network 132.Dq my_net 133using WPA with passphrase 134.Dq my_passphrase : 135.Bd -literal -offset indent 136# ifconfig urtwn0 nwid my_net wpakey my_passphrase 137.Ed 138.Pp 139Join an existing BSS network, 140.Dq my_net : 141.Bd -literal -offset indent 142# ifconfig urtwn0 192.168.1.1 netmask 0xffffff00 nwid my_net 143.Ed 144.Sh DIAGNOSTICS 145.Bl -diag 146.It "urtwn%d: error %d, could not read firmware %s" 147For some reason, the driver was unable to read the microcode file from the 148filesystem. 149The file might be missing or corrupted. 150.It "urtwn%d: device timeout" 151A frame dispatched to the hardware for transmission did not complete in time. 152The driver will reset the hardware. 153This should not happen. 154.El 155.Sh SEE ALSO 156.Xr arp 4 , 157.Xr ifmedia 4 , 158.Xr intro 4 , 159.Xr netintro 4 , 160.Xr usb 4 , 161.Xr hostname.if 5 , 162.Xr ifconfig 8 163.Sh HISTORY 164The 165.Nm 166driver first appeared in 167.Ox 4.9 . 168.Sh AUTHORS 169The 170.Nm 171driver was written by 172.An Damien Bergamini Aq damien@openbsd.org 173. 174.Sh CAVEATS 175The 176.Nm 177driver does not support any of the 802.11n capabilities offered by the 178adapters. 179Additional work is required in 180.Xr ieee80211 9 181before those features can be supported. 182