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-G301N 124.It Buffalo WLI-UC-GN 125.It Corega CG-WLUSB2GNL 126.It Corega CG-WLUSB2GNR 127.It Corega CG-WLUSB300AGN 128.It Corega CG-WLUSB300GNM 129.It D-Link DWA-130 rev B1 130.It D-Link DWA-140 131.It DrayTek Vigor N61 132.It Edimax EW-7711UAn 133.It Edimax EW-7711UTn 134.It Edimax EW-7717Un 135.It Edimax EW-7718Un 136.It Gigabyte GN-WB30N 137.It Gigabyte GN-WB31N 138.It Gigabyte GN-WB32L 139.It Hawking HWDN1 140.It Hawking HWUN1 141.It Hawking HWUN2 142.It Hercules HWNU-300 143.It Linksys WUSB54GC v3 144.It Linksys WUSB600N 145.It Mvix Nubbin MS-811N 146.It Planex GW-USMicroN 147.It Planex GW-US300MiniS 148.It Sitecom WL-182 149.It Sitecom WL-188 150.It Sitecom WL-301 151.It Sitecom WL-302 152.It Sitecom WL-315 153.It SMC SMCWUSBS-N2 154.It Sweex LW303 155.It Sweex LW313 156.It Unex DNUR-81 157.It Unex DNUR-82 158.It ZyXEL NWD210N 159.It ZyXEL NWD270N 160.El 161.Sh EXAMPLES 162Join an existing BSS network (i.e., connect to an access point): 163.Bd -literal -offset indent 164ifconfig wlan create wlandev run0 inet 192.168.0.20 \e 165 netmask 0xffffff00 166.Ed 167.Pp 168Join a specific BSS network with network name 169.Dq Li my_net : 170.Pp 171.Dl "ifconfig wlan create wlandev run0 ssid my_net up" 172.Pp 173Join a specific BSS network with 64-bit WEP encryption: 174.Bd -literal -offset indent 175ifconfig wlan create wlandev run0 ssid my_net \e 176 wepmode on wepkey 0x1234567890 weptxkey 1 up 177.Ed 178.Pp 179Join a specific BSS network with 128-bit WEP encryption: 180.Bd -literal -offset indent 181ifconfig wlan create wlandev run0 wlanmode adhoc ssid my_net \e 182 wepmode on wepkey 0x01020304050607080910111213 weptxkey 1 183.Ed 184.Sh DIAGNOSTICS 185.Bl -diag 186.It "run%d: faild load firmware of file runfw" 187For some reason, the driver was unable to read the microcode file from the 188filesystem. 189The file might be missing or corrupted. 190.It "run%d: could not load 8051 microcode" 191An error occurred while attempting to upload the microcode to the onboard 8051 192microcontroller unit. 193.It "run%d: device timeout" 194A frame dispatched to the hardware for transmission did not complete in time. 195The driver will reset the hardware. 196This should not happen. 197.El 198.Sh SEE ALSO 199.Xr runfw 4 , 200.Xr intro 4 , 201.Xr netintro 4 , 202.Xr usb 4 , 203.Xr wlan 4 , 204.Xr wlan_amrr 4 , 205.Xr wlan_ccmp 4 , 206.Xr wlan_tkip 4 , 207.Xr wlan_wep 4 , 208.Xr wlan_xauth 4 , 209.Xr ifconfig 8 , 210.Xr hostapd 8 , 211.Xr wpa_supplicant 8 . 212.Pp 213Ralink Technology: 214.Pa http://www.ralinktech.com/ 215.Sh HISTORY 216The 217.Nm 218driver first appeared in 219.Ox 4.5 . 220.Sh AUTHORS 221The 222.Nm 223driver was written by 224.An Damien Bergamini Aq damien@openbsd.org . 225.Sh CAVEATS 226The 227.Nm 228driver does not support any of the 802.11n capabilities offered by the 229RT2800 and RT3000 chipsets. 230