1.\" $NetBSD: urtwn.4,v 1.19 2024/05/26 09:27:20 nia Exp $ 2.\" $OpenBSD: urtwn.4,v 1.15 2011/11/26 06:39:33 ckuethe Exp $ 3.\" 4.\" Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 5.\" 6.\" Permission to use, copy, modify, and distribute this software for any 7.\" purpose with or without fee is hereby granted, provided that the above 8.\" copyright notice and this permission notice appear in all copies. 9.\" 10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" 18.Dd May 26, 2024 19.Dt URTWN 4 20.Os 21.Sh NAME 22.Nm urtwn 23.Nd Realtek RTL8188CU/RTL8188EU/RTL8192CU/RTL8192EU USB IEEE 802.11b/g/n wireless network 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 30RTL8188CUS, RTL8188CE-VAU, RTL8188EUS, RTL8188RU, RTL8192CU and RTL8192EU 31chipsets. 32.Pp 33The RTL8188CUS and RTL8188EUS are highly integrated 802.11n adapters that 34combine 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 RTL8188CUS. 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. 43It operates 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 IBSS mode 56Also known as 57.Em IEEE ad-hoc 58mode or 59.Em peer-to-peer 60mode. 61This is the standardized method of operating without an access point. 62Stations associate with a service set. 63However, actual connections between stations are peer-to-peer. 64.It Host AP 65In this mode the driver acts as an access point (base station) 66for other cards. 67.It monitor mode 68In this mode the driver is able to receive packets without 69associating with an access point. 70This disables the internal receive filter and enables the card to 71capture packets from networks which it wouldn't normally have access to, 72or to scan for access points. 73.El 74.Pp 75The 76.Nm 77driver can be configured to use 78Wired Equivalent Privacy (WEP) or 79Wi-Fi Protected Access (WPA-PSK and WPA2-PSK). 80WPA is the de facto encryption standard for wireless networks. 81It is strongly recommended that WEP 82not be used as the sole mechanism 83to secure wireless communication, 84due to serious weaknesses in it. 85.Pp 86The 87.Nm 88driver can be configured at runtime with 89.Xr ifconfig 8 90or on boot with 91.Xr ifconfig.if 5 . 92.Sh FILES 93The driver needs the following firmware files, 94which are loaded when an interface is attached: 95.Pp 96.Bl -tag -width Ds -offset indent -compact 97.It /libdata/firmware/if_urtwn/rtl8188eufw.bin 98.It /libdata/firmware/if_urtwn/rtl8192cfw.bin 99.It /libdata/firmware/if_urtwn/rtl8192cfwU.bin 100.It /libdata/firmware/if_urtwn/rtl8192efw.bin 101.El 102.Sh HARDWARE 103The following adapters should work: 104.Pp 105.Bl -tag -width Ds -offset indent -compact 106.It Airlink101 AWLL5088 107.It Aus. Linx AL-9604R1S 108.It ASUSTeK USB-N10 NANO 109.\".It ASUSTek USB-N13 B1 110.It B-Link BL-LW05-5R 111.It Belkin F7D1102 Surf Wireless Micro 112.It D-Link DWA-121 113.It D-Link DWA-125 114.It D-Link DWA-131 115.It D-Link DWA-133 116.It D-Link DWA-135 117.It Digitus DN-7042 118.It Edimax EW-7811Un 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-G150UMW 124.It Mercusys MW150US v2 125.It Netgear WNA1000A 126.It Planex GW-USEco300 127.It Planex GW-USNano2 128.It Planex GW-USValue-EZ 129.It Planex GW-USWExtreme 130.It POWCHIP POW-N18 131.It Sitecom N300 USB (WLA-2102 v1) 132.It Sitecom WL-365 133.It Solwise NET-WL-UMD-606N 134.It TP-LINK TL-WN722N v2 135.It TP-LINK TL-WN723N v3 136.It TP-LINK TL-WN725N v2 137.It TP-LINK TL-WN821N 138.It TP-LINK TL-WN822N v4 139.It TP-LINK TL-WN823N v2 140.It TRENDnet TEW-648UBM 141.El 142.Sh EXAMPLES 143The following 144.Xr ifconfig.if 5 145example configures urtwn0 to join whatever network is available on boot, 146using WEP key 147.Dq 0x1deadbeef1 , 148channel 11, obtaining an IP address using DHCP: 149.Bd -literal -offset indent 150nwkey 0x1deadbeef1 chan 11 151dhcp 152.Ed 153.Pp 154Join an existing BSS network, 155.Dq my_net : 156.Bd -literal -offset indent 157# ifconfig urtwn0 192.168.1.1 netmask 0xffffff00 nwid my_net 158.Ed 159.Sh DIAGNOSTICS 160.Bl -diag 161.It "urtwn%d: error %d, could not read firmware %s" 162For some reason, the driver was unable to read the microcode file from the 163filesystem. 164The file might be missing or corrupted. 165.It "urtwn%d: device timeout" 166A frame dispatched to the hardware for transmission did not complete in time. 167The driver will reset the hardware. 168This should not happen. 169.El 170.Sh SEE ALSO 171.Xr arp 4 , 172.Xr netintro 4 , 173.Xr usb 4 , 174.Xr ifconfig.if 5 , 175.Xr wpa_supplicant.conf 5 , 176.Xr ifconfig 8 , 177.Xr wpa_supplicant 8 178.Sh HISTORY 179The 180.Nm 181device driver first appeared in 182.Ox 4.9 183and in 184.Nx 6.0 . 185.Sh AUTHORS 186.An -nosplit 187The 188.Nm 189driver was written by 190.An Damien Bergamini 191.Aq damien@openbsd.org 192for 193.Ox 194and ported to 195.Nx 196by 197.An NONAKA Kimihiro 198.Aq nonaka@NetBSD.org . 199.Sh CAVEATS 200The 201.Nm 202driver does not support any of the 802.11n capabilities offered by the 203adapters. 204Additional work is required in 205.Xr ieee80211 9 206before those features can be supported. 207