1.\" $OpenBSD: rum.4,v 1.58 2016/06/16 17:25:32 martijn Exp $ 2.\" 3.\" Copyright (c) 2005-2007 4.\" 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 $Mdocdate: June 16 2016 $ 19.Dt RUM 4 20.Os 21.Sh NAME 22.Nm rum 23.Nd Ralink Technology/MediaTek USB IEEE 802.11a/b/g wireless network device 24.Sh SYNOPSIS 25.Cd "rum* at uhub? port ?" 26.Sh DESCRIPTION 27The 28.Nm 29driver supports USB 2.0 and PCI Express Mini Card wireless adapters based on the 30Ralink RT2501USB and RT2601USB chipsets. 31.Pp 32Ralink PCI Express Mini Card adapters show up as normal USB 2.0 devices and are 33thus handled by the 34.Nm 35driver. 36.Pp 37The RT2501USB chipset is the second generation of 802.11a/b/g adapters from 38Ralink. 39It consists of two integrated chips, an RT2571W MAC/BBP and an RT2528 or 40RT5226 radio transceiver. 41.Pp 42The RT2601USB chipset consists of two integrated chips, an RT2671 MAC/BBP and 43an RT2527 or RT5225 radio transceiver. 44This chipset uses the MIMO (multiple-input multiple-output) technology with 45multiple antennas to extend the operating range of the adapter and to achieve 46higher throughput. 47.Pp 48These are the modes the 49.Nm 50driver can operate in: 51.Bl -tag -width "IBSS-masterXX" 52.It BSS mode 53Also known as 54.Em infrastructure 55mode, this is used when associating with an access point, through 56which all traffic passes. 57This mode is the default. 58.It IBSS mode 59Also known as 60.Em IEEE ad-hoc 61mode or 62.Em peer-to-peer 63mode. 64This is the standardized method of operating without an access point. 65Stations associate with a service set. 66However, actual connections between stations are peer-to-peer. 67.It Host AP 68In this mode the driver acts as an access point (base station) 69for other cards. 70.It monitor mode 71In this mode the driver is able to receive packets without 72associating with an access point. 73This disables the internal receive filter and enables the card to 74capture packets from networks which it wouldn't normally have access to, 75or to scan for access points. 76.El 77.Pp 78The 79.Nm 80driver can be configured to use 81Wired Equivalent Privacy (WEP) or 82Wi-Fi Protected Access (WPA-PSK and WPA2-PSK). 83WPA is the current encryption standard for wireless networks. 84It is strongly recommended that WEP 85not be used as the sole mechanism 86to secure wireless communication, 87due to serious weaknesses in it. 88The 89.Nm 90driver relies on the software 802.11 stack for both encryption and decryption 91of data frames. 92.Pp 93The 94.Nm 95driver can be configured at runtime with 96.Xr ifconfig 8 97or on boot with 98.Xr hostname.if 5 . 99.Sh FILES 100The following firmware file is loaded when an interface is brought up: 101.Pp 102.Bl -tag -width Ds -offset indent -compact 103.It /etc/firmware/rum-rt2573 104.El 105.Sh HARDWARE 106The following adapters should work: 107.Pp 108.Bl -tag -width Ds -offset indent -compact 109.It 3Com Aolynk WUB320g 110.It Abocom WUG2700 111.It Airlink101 AWLL5025 112.It ASUS WL-167g ver 2 113.It Atlantis Land A02-UP1-W54 114.It Belkin F5D7050 ver 3 115.It Belkin F5D9050 ver 3 116.It Belkin F5D9050C 117.It Buffalo WLI-U2-SG54HG 118.It Buffalo WLI-U2-SG54HP 119.It Buffalo WLI-U2-G54HP 120.It CNet CWD-854 ver F 121.It Conceptronic C54RU ver 2 122.It Corega CG-WLUSB2GL 123.It Corega CG-WLUSB2GO 124.It Corega CG-WLUSB2GPX 125.It D-Link DWA-110 126.It D-Link DWA-111 127.It "D-Link DWL-G122 rev C1" 128.It D-Link WUA-1340 129.It Digitus DN-7003GR 130.It Edimax EW-7318Ug 131.It Edimax EW-7318USg 132.It Edimax EW-7618Ug 133.It Gigabyte GN-WB01GS 134.It Gigabyte GN-WI05GS 135.It Hawking HWUG1 136.It Hawking HWU54DM 137.It Hercules HWGUSB2-54-LB 138.It Hercules HWGUSB2-54V2-AP 139.It LevelOne WNC-0301USB v3 140.It Linksys WUSB200 141.It Linksys WUSB54G rev C 142.It Linksys WUSB54GR 143.It Planex GW-US54HP 144.It Planex GW-US54Mini2 145.It Planex GW-USMM 146.It Senao NUB-3701 147.It Sitecom WL-113 ver 2 148.It Sitecom WL-172 149.It Sweex LW053 150.It TP-LINK TL-WN321G 151.El 152.Sh EXAMPLES 153The following example scans for available networks: 154.Pp 155.Dl # ifconfig rum0 scan 156.Pp 157The following 158.Xr hostname.if 5 159example configures rum0 to join network 160.Dq mynwid , 161using WPA key 162.Dq mywpakey , 163obtaining an IP address using DHCP: 164.Bd -literal -offset indent 165nwid mynwid 166wpakey mywpakey 167dhcp 168.Ed 169.Pp 170The following 171.Xr hostname.if 5 172example creates a host-based access point on boot: 173.Bd -literal -offset indent 174mediaopt hostap 175nwid mynwid 176wpakey mywpakey 177inet 192.168.1.1 255.255.255.0 178.Ed 179.Sh DIAGNOSTICS 180.Bl -diag 181.It "rum0: error N, could not read firmware ..." 182For some reason, the driver was unable to read the microcode file from the 183filesystem. 184The file might be missing or corrupted. 185.It "rum0: could not load 8051 microcode" 186An error occurred while attempting to upload the microcode to the onboard 8051 187microcontroller unit. 188.It "rum0: device timeout" 189A frame dispatched to the hardware for transmission did not complete in time. 190The driver will reset the hardware. 191This should not happen. 192.El 193.Sh SEE ALSO 194.Xr arp 4 , 195.Xr ifmedia 4 , 196.Xr intro 4 , 197.Xr netintro 4 , 198.Xr usb 4 , 199.Xr hostname.if 5 , 200.Xr hostapd 8 , 201.Xr ifconfig 8 202.Sh HISTORY 203The 204.Nm 205driver first appeared in 206.Ox 4.0 . 207.Sh AUTHORS 208The 209.Nm 210driver was written by 211.An Niall O'Higgins Aq Mt niallo@openbsd.org 212and 213.An Damien Bergamini Aq Mt damien.bergamini@free.fr . 214.Sh CAVEATS 215The 216.Nm 217driver supports automatic control of the transmit speed in BSS mode only. 218Therefore the use of a 219.Nm 220adapter in Host AP mode is discouraged. 221.Pp 222Host AP mode doesn't support power saving. 223Clients attempting to use power saving mode may experience significant 224packet loss (disabling power saving on the client will fix this). 225