1.\" $OpenBSD: run.4,v 1.22 2009/11/23 06:16:32 jmc 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.\" $FreeBSD$ 18.\" 19.Dd January 12, 2011 20.Dt RUN 4 21.Os 22.Sh NAME 23.Nm run 24.Nd Ralink Technology USB IEEE 802.11a/g/n wireless network device 25.Sh SYNOPSIS 26To compile this driver into the kernel, 27place the following lines in your 28kernel configuration file: 29.Bd -ragged -offset indent 30.Cd "device ehci" 31.Cd "device uhci" 32.Cd "device ohci" 33.Cd "device usb" 34.Cd "device run" 35.Cd "device wlan" 36.Cd "device wlan_amrr" 37.Ed 38.Pp 39Firmware is also needed, and provided by: 40.Bd -ragged -offset indent 41.Cd "device runfw" 42.Ed 43.Pp 44Alternatively, to load the driver as a 45module at boot time, place the following lines in 46.Xr loader.conf 5 : 47.Bd -literal -offset indent 48if_run_load="YES" 49runfw_load="YES" 50.Ed 51.Sh DESCRIPTION 52The 53.Nm 54driver supports USB 2.0 wireless adapters based on the Ralink RT2700U, 55RT2800U and RT3000U chipsets. 56.Pp 57The RT2700U chipset consists of two integrated chips, an RT2770 MAC/BBP and 58an RT2720 (1T2R) or RT2750 (dual-band 1T2R) radio transceiver. 59.Pp 60The RT2800U chipset consists of two integrated chips, an RT2870 MAC/BBP and 61an RT2820 (2T3R) or RT2850 (dual-band 2T3R) radio transceiver. 62.Pp 63The RT3000U is a single-chip solution based on an RT3070 MAC/BBP and 64an RT3020 (1T1R), RT3021 (1T2R) or RT3022 (2T2R) single-band radio 65transceiver. 66.Pp 67These are the modes the 68.Nm 69driver can operate in: 70.Bl -tag -width "IBSS-masterXX" 71.It BSS mode 72Also known as 73.Em infrastructure 74mode, this is used when associating with an access point, through 75which all traffic passes. 76This mode is the default. 77.It Host AP mode 78In this mode the driver acts as an access point (base station) 79for other cards. 80.It monitor mode 81In this mode the driver is able to receive packets without 82associating with an access point. 83This disables the internal receive filter and enables the card to 84capture packets from networks which it wouldn't normally have access to, 85or to scan for access points. 86.El 87.Pp 88The 89.Nm 90driver can be configured to use 91Wired Equivalent Privacy (WEP) or 92Wi-Fi Protected Access (WPA-PSK and WPA2-PSK). 93WPA is the de facto encryption standard for wireless networks. 94It is strongly recommended that WEP 95not be used as the sole mechanism 96to secure wireless communication, 97due to serious weaknesses in it. 98The 99.Nm 100driver offloads both encryption and decryption of data frames to the 101hardware for the WEP40, WEP104, TKIP(+MIC) and CCMP ciphers. 102.Pp 103The 104.Nm 105driver can be configured at runtime with 106.Xr ifconfig 8 . 107.Sh HARDWARE 108The 109.Nm 110driver supports the following wireless adapters: 111.Pp 112.Bl -tag -width Ds -offset indent -compact 113.It Airlink101 AWLL6090 114.It ASUS USB-N11 115.It ASUS USB-N13 116.It ASUS WL-160N 117.It Belkin F5D8051 ver 3000 118.It Belkin F5D8053 119.It Belkin F5D8055 120.It Belkin F6D4050 ver 1 121.It Buffalo WLI-UC-AG300N 122.It Buffalo WLI-UC-G300N 123.It Buffalo WLI-UC-GN 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-130 rev B1 129.It D-Link DWA-140 130.It DrayTek Vigor N61 131.It Edimax EW-7711UAn 132.It Edimax EW-7711UTn 133.It Edimax EW-7717Un 134.It Edimax EW-7718Un 135.It Gigabyte GN-WB30N 136.It Gigabyte GN-WB31N 137.It Gigabyte GN-WB32L 138.It Hawking HWDN1 139.It Hawking HWUN1 140.It Hawking HWUN2 141.It Hercules HWNU-300 142.It Linksys WUSB54GC v3 143.It Linksys WUSB600N 144.It Mvix Nubbin MS-811N 145.It Planex GW-USMicroN 146.It Planex GW-US300MiniS 147.It Sitecom WL-182 148.It Sitecom WL-188 149.It Sitecom WL-301 150.It Sitecom WL-302 151.It Sitecom WL-315 152.It SMC SMCWUSBS-N2 153.It Sweex LW303 154.It Sweex LW313 155.It Unex DNUR-81 156.It Unex DNUR-82 157.It ZyXEL NWD210N 158.It ZyXEL NWD270N 159.El 160.Sh EXAMPLES 161Join an existing BSS network (i.e., connect to an access point): 162.Bd -literal -offset indent 163ifconfig wlan create wlandev run0 inet 192.168.0.20 \e 164 netmask 0xffffff00 165.Ed 166.Pp 167Join a specific BSS network with network name 168.Dq Li my_net : 169.Pp 170.Dl "ifconfig wlan create wlandev run0 ssid my_net up" 171.Pp 172Join a specific BSS network with 64-bit WEP encryption: 173.Bd -literal -offset indent 174ifconfig wlan create wlandev run0 ssid my_net \e 175 wepmode on wepkey 0x1234567890 weptxkey 1 up 176.Ed 177.Pp 178Join a specific BSS network with 128-bit WEP encryption: 179.Bd -literal -offset indent 180ifconfig wlan create wlandev run0 wlanmode adhoc ssid my_net \e 181 wepmode on wepkey 0x01020304050607080910111213 weptxkey 1 182.Ed 183.Sh DIAGNOSTICS 184.Bl -diag 185.It "run%d: faild load firmware of file runfw" 186For some reason, the driver was unable to read the microcode file from the 187filesystem. 188The file might be missing or corrupted. 189.It "run%d: could not load 8051 microcode" 190An error occurred while attempting to upload the microcode to the onboard 8051 191microcontroller unit. 192.It "run%d: device timeout" 193A frame dispatched to the hardware for transmission did not complete in time. 194The driver will reset the hardware. 195This should not happen. 196.El 197.Sh SEE ALSO 198.Xr runfw 4 , 199.Xr intro 4 , 200.Xr netintro 4 , 201.Xr usb 4 , 202.Xr wlan 4 , 203.Xr wlan_amrr 4 , 204.Xr wlan_ccmp 4 , 205.Xr wlan_tkip 4 , 206.Xr wlan_wep 4 , 207.Xr wlan_xauth 4 , 208.Xr ifconfig 8 , 209.Xr hostapd 8 , 210.Xr wpa_supplicant 8 . 211.Pp 212Ralink Technology: 213.Pa http://www.ralinktech.com/ 214.Sh HISTORY 215The 216.Nm 217driver first appeared in 218.Ox 4.5 . 219.Sh AUTHORS 220The 221.Nm 222driver was written by 223.An Damien Bergamini Aq damien@openbsd.org . 224.Sh CAVEATS 225The 226.Nm 227driver does not support any of the 802.11n capabilities offered by the 228RT2800 and RT3000 chipsets. 229