1.\" $OpenBSD: urtwn.4,v 1.56 2023/06/12 11:30:55 jsg 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: June 12 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 Mercusys MW150US V2 126.It Netgear WNA1000A 127.It Netgear WNA1000M 128.It Netgear WNA1000Mv2 129.It On Networks N300MA 130.It Patriot PCUSBW1150 131.It Planex GW-USEco300 132.It Planex GW-USNano2 133.It Planex GW-USValue-EZ 134.It Planex GW-USWExtreme 135.It POWCHIP POW-N18 136.It Prolink WN2201 137.It Sitecom WL-365 138.It Sitecom WLA-2100 v2 139.It Solwise NET-WL-UMD-606N 140.It TP-LINK TL-WN722N v2 141.It TP-LINK TL-WN723N v3 142.It TP-LINK TL-WN725N v2 143.It TP-LINK TL-WN821N v4 144.It TP-LINK TL-WN821N v5 145.It TP-LINK TL-WN822N v4 146.It TP-LINK TL-WN822N v5 147.It TRENDnet TEW-648UBM 148.El 149.Sh EXAMPLES 150The following example scans for available networks: 151.Pp 152.Dl # ifconfig urtwn0 scan 153.Pp 154The following 155.Xr hostname.if 5 156example configures urtwn0 to join network 157.Dq mynwid , 158using WPA key 159.Dq mywpakey , 160obtaining an IP address using DHCP: 161.Bd -literal -offset indent 162join mynwid wpakey mywpakey 163inet autoconf 164.Ed 165.Sh DIAGNOSTICS 166.Bl -diag 167.It "urtwn0: error N, could not read firmware ..." 168For some reason, the driver was unable to read the microcode file from the 169filesystem. 170The file might be missing or corrupted. 171.It "urtwn0: device timeout" 172A frame dispatched to the hardware for transmission did not complete in time. 173The driver will reset the hardware. 174This should not happen. 175.El 176.Sh SEE ALSO 177.Xr arp 4 , 178.Xr ifmedia 4 , 179.Xr intro 4 , 180.Xr netintro 4 , 181.Xr usb 4 , 182.Xr hostname.if 5 , 183.Xr ifconfig 8 184.Sh HISTORY 185The 186.Nm 187driver first appeared in 188.Ox 4.9 . 189.Sh AUTHORS 190The 191.Nm 192driver was written by 193.An Damien Bergamini Aq Mt damien.bergamini@free.fr . 194.Sh CAVEATS 195The 196.Nm 197driver does not support any of the 802.11n capabilities offered by the 198adapters. 199Additional work is required in 200.Xr ieee80211 9 201before those features can be supported. 202.Pp 203This driver does not support powersave mode. 204