1.\" $OpenBSD: run.4,v 1.34 2012/03/24 15:11:04 jsg 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: March 24 2012 $ 18.Dt RUN 4 19.Os 20.Sh NAME 21.Nm run 22.Nd Ralink Technology USB IEEE 802.11a/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 and RT3000U 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 41These are the modes the 42.Nm 43driver can operate in: 44.Bl -tag -width "IBSS-masterXX" 45.It BSS mode 46Also known as 47.Em infrastructure 48mode, this is used when associating with an access point, through 49which all traffic passes. 50This mode is the default. 51.It monitor mode 52In this mode the driver is able to receive packets without 53associating with an access point. 54This disables the internal receive filter and enables the card to 55capture packets from networks which it wouldn't normally have access to, 56or to scan for access points. 57.El 58.Pp 59The 60.Nm 61driver can be configured to use 62Wired Equivalent Privacy (WEP) or 63Wi-Fi Protected Access (WPA-PSK and WPA2-PSK). 64WPA is the de facto encryption standard for wireless networks. 65It is strongly recommended that WEP 66not be used as the sole mechanism 67to secure wireless communication, 68due to serious weaknesses in it. 69The 70.Nm 71driver offloads both encryption and decryption of data frames to the 72hardware for the WEP40, WEP104, TKIP(+MIC) and CCMP ciphers. 73.Pp 74The 75.Nm 76driver can be configured at runtime with 77.Xr ifconfig 8 78or on boot with 79.Xr hostname.if 5 . 80.Sh FILES 81The driver needs the following firmware files, 82which are loaded when an interface is brought up: 83.Pp 84.Bl -tag -width Ds -offset indent -compact 85.It /etc/firmware/run-rt2870 86.It /etc/firmware/run-rt3071 87.El 88.Sh HARDWARE 89The following adapters should work: 90.Pp 91.Bl -tag -width Ds -offset indent -compact 92.It Airlink101 AWLL6090 93.It ASUS USB-N11 94.It ASUS USB-N13 95.It ASUS WL-160N 96.It Belkin F5D8051 ver 3000 97.It Belkin F5D8053 98.It Belkin F5D8055 99.It Belkin F6D4050 ver 1 100.It Belkin F6D4050 ver 2 101.It Belkin F7D1101 ver 2 102.It Buffalo WLI-UC-AG300N 103.It Buffalo WLI-UC-G300N 104.It Buffalo WLI-UC-G301N 105.It Buffalo WLI-UC-GN 106.It Buffalo WLI-UC-GNHP 107.It Buffalo WLI-UC-GNM 108.It Cisco AM10 109.It Corega CG-WLUSB2GNL 110.It Corega CG-WLUSB2GNR 111.It Corega CG-WLUSB300AGN 112.It Corega CG-WLUSB300GNM 113.It D-Link DWA-130 rev B1 114.It D-Link DWA-140 115.It DrayTek Vigor N61 116.It Edimax EW-7711UAn 117.It Edimax EW-7711UTn 118.It Edimax EW-7717Un 119.It Edimax EW-7718Un 120.It Edimax EW-7722UTn 121.It Gigabyte GN-WB30N 122.It Gigabyte GN-WB31N 123.It Gigabyte GN-WB32L 124.It Hawking HWDN1 125.It Hawking HWUN1 126.It Hawking HWUN2 127.It Hercules HWNU-300 128.It Linksys AE1000 129.It Linksys WUSB54GC v3 130.It Linksys WUSB600N 131.It Logitec gLAN-W150NU2BK 132.It Logitec LAN-W300N/U2 133.It Mvix Nubbin MS-811N 134.It Planex GW-USMicroN 135.It Planex GW-US300MiniS 136.It Sitecom WL-182 137.It Sitecom WL-188 138.It Sitecom WL-301 139.It Sitecom WL-302 140.It Sitecom WL-315 141.It Sitecom WLA-4000 142.It Sitecom WLA-5000 143.It SMC SMCWUSBS-N2 144.It Sweex LW153 145.It Sweex LW303 146.It Sweex LW313 147.It TRENDnet TEW-645UB 148.It Unex DNUR-81 149.It Unex DNUR-82 150.It ZyXEL NWD-211AN 151.It ZyXEL NWD-271N 152.It ZyXEL NWD2105 153.It ZyXEL NWD210N 154.It ZyXEL NWD2205 155.It ZyXEL NWD270N 156.El 157.Sh EXAMPLES 158The following 159.Xr hostname.if 5 160example configures run0 to join whatever network is available on boot, 161using WEP key 162.Dq 0x1deadbeef1 , 163channel 11, obtaining an IP address using DHCP: 164.Bd -literal -offset indent 165dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11 166.Ed 167.Pp 168Configure run0 to join network 169.Dq my_net 170using WPA with passphrase 171.Dq my_passphrase : 172.Bd -literal -offset indent 173# ifconfig run0 nwid my_net wpakey my_passphrase 174.Ed 175.Pp 176Join an existing BSS network, 177.Dq my_net : 178.Bd -literal -offset indent 179# ifconfig run0 192.168.1.1 netmask 0xffffff00 nwid my_net 180.Ed 181.Sh DIAGNOSTICS 182.Bl -diag 183.It "run%d: error %d, could not read firmware %s" 184For some reason, the driver was unable to read the microcode file from the 185filesystem. 186The file might be missing or corrupted. 187.It "run%d: could not load 8051 microcode" 188An error occurred while attempting to upload the microcode to the onboard 8051 189microcontroller unit. 190.It "run%d: device timeout" 191A frame dispatched to the hardware for transmission did not complete in time. 192The driver will reset the hardware. 193This should not happen. 194.El 195.Sh SEE ALSO 196.Xr arp 4 , 197.Xr ifmedia 4 , 198.Xr intro 4 , 199.Xr netintro 4 , 200.Xr usb 4 , 201.Xr hostname.if 5 , 202.Xr ifconfig 8 203.Pp 204Ralink Technology: 205.Pa http://www.ralinktech.com/ 206.Sh HISTORY 207The 208.Nm 209driver first appeared in 210.Ox 4.5 . 211.Sh AUTHORS 212The 213.Nm 214driver was written by 215.An Damien Bergamini Aq damien@openbsd.org . 216.Sh CAVEATS 217The 218.Nm 219driver does not support any of the 802.11n capabilities offered by the 220RT2800 and RT3000 chipsets. 221Additional work is required in 222.Xr ieee80211 9 223before those features can be supported. 224