1.\" $OpenBSD: run.4,v 1.54 2019/11/10 14:10:41 sthen Exp $ 2.\" 3.\" Copyright (c) 2008 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 10 2019 $ 18.Dt RUN 4 19.Os 20.Sh NAME 21.Nm run 22.Nd Ralink Technology/MediaTek USB IEEE 802.11a/b/g/n wireless network device 23.Sh SYNOPSIS 24.Cd "run* at uhub? port ?" 25.Sh DESCRIPTION 26The 27.Nm 28driver supports USB 2.0 wireless adapters based on the Ralink RT2700U, 29RT2800U, RT3000U and RT3900E chipsets. 30.Pp 31The RT2700U chipset consists of two integrated chips, an RT2770 MAC/BBP and 32an RT2720 (1T2R) or RT2750 (dual-band 1T2R) radio transceiver. 33.Pp 34The RT2800U chipset consists of two integrated chips, an RT2870 MAC/BBP and 35an RT2820 (2T3R) or RT2850 (dual-band 2T3R) radio transceiver. 36.Pp 37The RT3000U is a single-chip solution based on an RT3070 MAC/BBP and 38an RT3020 (1T1R), RT3021 (1T2R), RT3022 (2T2R) or RT3052 (dual-band 2T2R) 39radio transceiver. 40.Pp 41The RT3900E is a single-chip solution based on an RT3593, RT5390, 42RT5392 or an RT5592 MAC/BBP and an RT3053 (dual-band 3T3R), 43RT5370 (1T1R), RT5372 (2T2R), or RT5572 (dual-band 2T2R) 44radio transceiver. 45.Pp 46These are the modes the 47.Nm 48driver can operate in: 49.Bl -tag -width "IBSS-masterXX" 50.It BSS mode 51Also known as 52.Em infrastructure 53mode, this is used when associating with an access point, through 54which all traffic passes. 55This mode is the default. 56.It monitor mode 57In this mode the driver is able to receive packets without 58associating with an access point. 59This disables the internal receive filter and enables the card to 60capture packets from networks which it wouldn't normally have access to, 61or to scan for access points. 62.El 63.Pp 64The 65.Nm 66driver can be configured to use 67Wired Equivalent Privacy (WEP) or 68Wi-Fi Protected Access (WPA1 and WPA2). 69WPA2 is the current encryption standard for wireless networks. 70It is strongly recommended that neither WEP nor WPA1 71are used as the sole mechanism to secure wireless communication, 72due to serious weaknesses. 73WPA1 is disabled by default and may be enabled using the option 74.Qq Cm wpaprotos Ar wpa1,wpa2 . 75For standard WPA networks which use pre-shared keys (PSK), 76keys are configured using the 77.Qq Cm wpakey 78option. 79WPA-Enterprise networks require use of the wpa_supplicant package. 80The 81.Nm 82driver offloads both encryption and decryption of data frames to the 83hardware for the WEP40, WEP104, TKIP(+MIC) and CCMP ciphers. 84.Pp 85The 86.Nm 87driver can be configured at runtime with 88.Xr ifconfig 8 89or on boot with 90.Xr hostname.if 5 . 91.Sh FILES 92The driver needs the following firmware files, 93which are loaded when an interface is brought up: 94.Pp 95.Bl -tag -width Ds -offset indent -compact 96.It /etc/firmware/run-rt2870 97.It /etc/firmware/run-rt3071 98.El 99.Sh HARDWARE 100The following adapters should work: 101.Pp 102.Bl -tag -width Ds -offset indent -compact 103.It Airlink101 AWLL6090 104.It ASUS USB-N11 105.It ASUS USB-N13 ver. A1 106.It ASUS USB-N53 107.It ASUS USB-N66 108.It ASUS WL-160N 109.It Belkin F5D8051 ver 3000 110.It Belkin F5D8053 111.It Belkin F5D8055 112.It Belkin F6D4050 ver 1 113.It Belkin F6D4050 ver 2 114.It Belkin F7D1101 ver 2 115.It Belkin F9L1103 116.It Buffalo WLI-UC-AG300N 117.It Buffalo WLI-UC-G300N 118.It Buffalo WLI-UC-G301N 119.It Buffalo WLI-UC-GN 120.It Buffalo WLI-UC-GNHP 121.It Buffalo WLI-UC-GNM 122.It Buffalo WLI-UC-GNM2 123.It Cisco AM10 124.It Corega CG-WLUSB2GNL 125.It Corega CG-WLUSB2GNR 126.It Corega CG-WLUSB300AGN 127.It Corega CG-WLUSB300GNM 128.It D-Link DWA-125 rev B2 129.It D-Link DWA-127 130.It D-Link DWA-130 rev B1, F1 131.It D-Link DWA-140 rev B1, B2, B3, \&D1 132.It D-Link DWA-160 rev B2 133.It D-Link DWA-162 134.It DrayTek Vigor N61 135.It Edimax EW-7711UAn 136.It Edimax EW-7711USn 137.It Edimax EW-7711UTn 138.It Edimax EW-7717Un 139.It Edimax EW-7718Un 140.It Edimax EW-7722UTn 141.It Edimax EW-7733UnD 142.It Gigabyte GN-WB30N 143.It Gigabyte GN-WB31N 144.It Gigabyte GN-WB32L 145.It Hawking HWDN1 146.It Hawking HWUN1 147.It Hawking HWUN2 148.It Hercules HWNU-300 149.It Keebox W150NU 150.It Linksys AE1000 151.It Linksys WUSB54GC v3 152.It Linksys WUSB600N 153.It LogiLink WL0084B 154.It Logitec gLAN-W150NU2BK 155.It Logitec LAN-W150N/U2 156.It Logitec LAN-W300N/U2 157.It Logitec LAN-W300N/U2S 158.It Mvix Nubbin MS-811N 159.It Planex GW-USMicroN 160.It Planex GW-US300MiniS 161.It Sitecom WL-182 162.It Sitecom WL-188 163.It Sitecom WL-301 164.It Sitecom WL-302 165.It Sitecom WL-315 166.It Sitecom WLA-4000 167.It Sitecom WLA-5000 168.It SMC SMCWUSBS-N2 169.It Sweex LW153 170.It Sweex LW303 171.It Sweex LW313 172.It Tenda W311M 173.It TP-LINK TL-WDN3200 174.It TP-LINK TL-WN727N v3 175.It TRENDnet TEW-645UB 176.It Unex DNUR-81 177.It Unex DNUR-82 178.It ZyXEL NWD-211AN 179.It ZyXEL NWD-271N 180.It ZyXEL NWD2105 181.It ZyXEL NWD210N 182.It ZyXEL NWD2205 183.It ZyXEL NWD270N 184.It ZyXEL NWD2705 185.El 186.Sh EXAMPLES 187The following example scans for available networks: 188.Pp 189.Dl # ifconfig run0 scan 190.Pp 191The following 192.Xr hostname.if 5 193example configures run0 to join network 194.Dq mynwid , 195using WPA key 196.Dq mywpakey , 197obtaining an IP address using DHCP: 198.Bd -literal -offset indent 199nwid mynwid wpakey mywpakey 200dhcp 201.Ed 202.Sh DIAGNOSTICS 203.Bl -diag 204.It "run0: error N, could not read firmware ..." 205For some reason, the driver was unable to read the microcode file from the 206filesystem. 207The file might be missing or corrupted. 208.It "run0: could not load 8051 microcode" 209An error occurred while attempting to upload the microcode to the onboard 8051 210microcontroller unit. 211.It "run0: device timeout" 212A frame dispatched to the hardware for transmission did not complete in time. 213The driver will reset the hardware. 214This should not happen. 215.El 216.Sh SEE ALSO 217.Xr arp 4 , 218.Xr ifmedia 4 , 219.Xr intro 4 , 220.Xr netintro 4 , 221.Xr usb 4 , 222.Xr hostname.if 5 , 223.Xr ifconfig 8 224.Sh HISTORY 225The 226.Nm 227driver first appeared in 228.Ox 4.5 . 229.Sh AUTHORS 230The 231.Nm 232driver was written by 233.An Damien Bergamini Aq Mt damien.bergamini@free.fr . 234.Sh CAVEATS 235The 236.Nm 237driver does not support any of the 802.11n capabilities offered by the 238RT2800 and RT3000 chipsets. 239Additional work is required in 240.Xr ieee80211 9 241before those features can be supported. 242.Pp 243This driver does not support powersave mode. 244