1.\" $OpenBSD: urtwn.4,v 1.55 2023/04/28 06:21:42 jmc 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: April 28 2023 $ 18.Dt URTWN 4 19.Os 20.Sh NAME 21.Nm urtwn 22.Nd Realtek RTL8188CU/RTL8188EU/RTL8188FTV/RTL8192CU/RTL8192EU USB IEEE 802.11b/g/n wireless 23network device 24.Sh SYNOPSIS 25.Cd "urtwn* at uhub? port ?" 26.Sh DESCRIPTION 27The 28.Nm 29driver supports USB 2.0 wireless network devices based on Realtek 30RTL8188CU, RTL8188CE-VAU, RTL8188EU, RTL8188FTV, RTL8188RU, RTL8192CU 31and RTL8192EU chipsets. 32.Pp 33The RTL8188CU, RTL8188EU and RTL8188FTV are highly integrated 802.11n adapters 34that combine a MAC, a 1T1R capable baseband and an RF in a single chip. 35They operate in the 2GHz spectrum only. 36The RTL8188RU is a high-power variant of the RTL8188CU. 37The RTL8188CE-VAU is a PCI Express Mini Card adapter that attaches 38to the USB interface. 39.Pp 40The RTL8192CU and RTL8192EU are highly integrated multiple-in, multiple-out 41(MIMO) 802.11n adapters that combine a MAC, a 2T2R capable baseband and an 42RF in a single chip. 43They operate in the 2GHz spectrum only. 44.Pp 45These are the modes the 46.Nm 47driver can operate in: 48.Bl -tag -width "IBSS-masterXX" 49.It BSS mode 50Also known as 51.Em infrastructure 52mode, this is used when associating with an access point, through 53which all traffic passes. 54This mode is the default. 55.It monitor mode 56In this mode the driver is able to receive packets without 57associating with an access point. 58This disables the internal receive filter and enables the card to 59capture packets from networks which it wouldn't normally have access to, 60or to scan for access points. 61.El 62.Pp 63The 64.Nm 65driver can be configured to use 66Wired Equivalent Privacy (WEP) or 67Wi-Fi Protected Access (WPA1 and WPA2). 68WPA2 is the current encryption standard for wireless networks. 69It is strongly recommended that neither WEP nor WPA1 70are used as the sole mechanism to secure wireless communication, 71due to serious weaknesses. 72WPA1 is disabled by default and may be enabled using the option 73.Qq Cm wpaprotos Ar wpa1,wpa2 . 74For standard WPA networks which use pre-shared keys (PSK), 75keys are configured using the 76.Qq Cm wpakey 77option. 78WPA-Enterprise networks require use of the wpa_supplicant package. 79.Pp 80The 81.Nm 82driver can be configured at runtime with 83.Xr ifconfig 8 84or on boot with 85.Xr hostname.if 5 . 86.Sh FILES 87The adapter needs firmware files to run, which are loaded on demand by 88the driver when the device is attached: 89.Pp 90.Bl -tag -width Ds -offset indent -compact 91.It Pa /etc/firmware/urtwn-rtl8192cT 92.It Pa /etc/firmware/urtwn-rtl8192cU 93.It Pa /etc/firmware/urtwn-rtl8192eu 94.It Pa /etc/firmware/urtwn-rtl8188eu 95.It Pa /etc/firmware/urtwn-rtl8188ftv 96.El 97.Sh HARDWARE 98The following adapters should work: 99.Pp 100.Bl -tag -width Ds -offset indent -compact 101.It Airlink101 AWLL5088 102.It Alfa AWUS036NHR 103.It Approx APPUSB300NANO V1 104.It Aus. Linx AL-9604R1S 105.It Asus USB-N10 NANO 106.It Asus USB-N10 NANO B1 107.It B-Link BL-LW05-5R 108.It Belkin F7D1102 Surf Wireless Micro 109.It Comfast CF-WU710N v4 110.It D-Link DWA-121 111.It D-Link DWA-123 rev \&D1 112.It D-Link DWA-125 rev \&D1 113.It D-Link DWA-131 rev B, E1 114.It D-Link DWA-133 115.It D-Link DWA-135 116.It Digitus DN-7042 117.It Edimax EW-7811Un 118.It Edimax EW-7811Un v2 119.It EDUP EP-N8508 120.It Elecom WDC-150SU2M 121.It Full River FR-W100NUL 122.It Hercules Wireless N USB Pico HWNUp-150 123.It IO-DATA WN-G150UM 124.It ISY IWL4000 USB Wireless Micro Adapter 125.It Netgear WNA1000A 126.It Netgear WNA1000M 127.It Netgear WNA1000Mv2 128.It On Networks N300MA 129.It Patriot PCUSBW1150 130.It Planex GW-USEco300 131.It Planex GW-USNano2 132.It Planex GW-USValue-EZ 133.It Planex GW-USWExtreme 134.It POWCHIP POW-N18 135.It Prolink WN2201 136.It Sitecom WL-365 137.It Sitecom WLA-2100 v2 138.It Solwise NET-WL-UMD-606N 139.It TP-LINK TL-WN722N v2 140.It TP-LINK TL-WN723N v3 141.It TP-LINK TL-WN725N v2 142.It TP-LINK TL-WN821N v4 143.It TP-LINK TL-WN821N v5 144.It TP-LINK TL-WN822N v4 145.It TP-LINK TL-WN822N v5 146.It TRENDnet TEW-648UBM 147.El 148.Sh EXAMPLES 149The following example scans for available networks: 150.Pp 151.Dl # ifconfig urtwn0 scan 152.Pp 153The following 154.Xr hostname.if 5 155example configures urtwn0 to join network 156.Dq mynwid , 157using WPA key 158.Dq mywpakey , 159obtaining an IP address using DHCP: 160.Bd -literal -offset indent 161join mynwid wpakey mywpakey 162inet autoconf 163.Ed 164.Sh DIAGNOSTICS 165.Bl -diag 166.It "urtwn0: error N, could not read firmware ..." 167For some reason, the driver was unable to read the microcode file from the 168filesystem. 169The file might be missing or corrupted. 170.It "urtwn0: device timeout" 171A frame dispatched to the hardware for transmission did not complete in time. 172The driver will reset the hardware. 173This should not happen. 174.El 175.Sh SEE ALSO 176.Xr arp 4 , 177.Xr ifmedia 4 , 178.Xr intro 4 , 179.Xr netintro 4 , 180.Xr usb 4 , 181.Xr hostname.if 5 , 182.Xr ifconfig 8 183.Sh HISTORY 184The 185.Nm 186driver first appeared in 187.Ox 4.9 . 188.Sh AUTHORS 189The 190.Nm 191driver was written by 192.An Damien Bergamini Aq Mt damien.bergamini@free.fr . 193.Sh CAVEATS 194The 195.Nm 196driver does not support any of the 802.11n capabilities offered by the 197adapters. 198Additional work is required in 199.Xr ieee80211 9 200before those features can be supported. 201.Pp 202This driver does not support powersave mode. 203