1.\"- 2.\" SPDX-License-Identifier: ISC 3.\" 4.\" Copyright (c) 2005-2010 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 November 10, 2024 19.Dt RAL 4 20.Os 21.Sh NAME 22.Nm ral 23.Nd Ralink Technology IEEE 802.11a/g/n wireless network driver 24.Sh SYNOPSIS 25To compile this driver into the kernel, 26place the following lines in your 27kernel configuration file: 28.Bd -ragged -offset indent 29.Cd "device ral" 30.Cd "device ralfw" 31.Cd "device wlan" 32.Cd "device wlan_amrr" 33.Cd "device firmware" 34.Ed 35.Pp 36Alternatively, to load the driver as a 37module at boot time, place the following line in 38.Xr loader.conf 5 : 39.Bd -literal -offset indent 40if_ral_load="YES" 41.Ed 42.Sh DESCRIPTION 43The 44.Nm 45driver supports PCI/PCIe/CardBus wireless adapters based on the Ralink RT2500, 46RT2501, RT2600, RT2700, RT2800, RT3090 and RT3900E chipsets. 47.Pp 48The RT2500 chipset is the first generation of 802.11b/g adapters from Ralink. 49It consists of two integrated chips, an RT2560 MAC/BBP and an RT2525 radio 50transceiver. 51.Pp 52The RT2501 chipset is the second generation of 802.11a/b/g adapters from 53Ralink. 54It consists of two integrated chips, an RT2561 MAC/BBP and an RT2527 radio 55transceiver. 56This chipset provides support for the IEEE 802.11e standard with multiple 57hardware transmission queues and allows scatter/gather for efficient DMA 58operations. 59.Pp 60The RT2600 chipset consists of two integrated chips, an RT2661 MAC/BBP and an 61RT2529 radio transceiver. 62This chipset uses the MIMO (multiple-input multiple-output) technology with 63multiple radio transceivers to extend the operating range of the adapter and 64to achieve higher throughput. 65However, the RT2600 chipset does not support any of the 802.11n features. 66.Pp 67The RT2700 chipset is a low-cost version of the RT2800 chipset. 68It supports a single transmit path and two receiver paths (1T2R). 69It consists of two integrated chips, an RT2760 or RT2790 (PCIe) MAC/BBP and 70an RT2720 (2.4GHz) or RT2750 (2.4GHz/5GHz) radio transceiver. 71.Pp 72The RT2800 chipset is the first generation of 802.11n adapters from Ralink. 73It consists of two integrated chips, an RT2860 or RT2890 (PCIe) MAC/BBP and 74an RT2820 (2.4GHz) or RT2850 (2.4GHz/5GHz) radio transceiver. 75The RT2800 chipset supports two transmit paths and up to three receiver 76paths (2T2R/2T3R). 77It can achieve speeds up to 144Mbps (20MHz bandwidth) and 300Mbps (40MHz 78bandwidth.) 79.Pp 80The RT3090 chipset is the first generation of single-chip 802.11n adapters 81from Ralink. 82.Nm 83supports 84.Cm station , 85.Cm adhoc , 86.Cm hostap , 87.Cm mesh , 88.Cm wds , 89and 90.Cm monitor 91mode operation. 92Only one 93.Cm hostap 94or 95.Cm mesh 96virtual interface may be configured at a time. 97Any number of 98.Cm wds 99virtual interfaces may be configured together with a 100.Cm hostap 101interface. 102Multiple 103.Cm station 104interfaces may be operated together with a 105.Cm hostap 106interface to construct a wireless repeater device. 107.Pp 108The RT3900E chipset is a single-chip 802.11n adapters from Ralink. 109The MAC/Baseband Processor can be an RT5390 or RT5392. 110The RT5390 chip operates in the 2GHz spectrum and supports 1 transmit path 111and 1 receiver path (1T1R). 112The RT5392 chip operates in the 2GHz spectrum and supports up to 2 transmit 113paths and 2 receiver paths (2T2R). 114.Pp 115The transmit speed is user-selectable or can be adapted automatically by the 116driver depending on the number of hardware transmission retries. 117For more information on configuring this device, see 118.Xr ifconfig 8 . 119.Sh HARDWARE 120The 121.Nm 122driver supports PCI/PCIe/CardBus wireless adapters based on Ralink Technology 123chipsets, including: 124.Pp 125.Bl -column -offset indent -compact "Atlantis Land A02-PCM-W54" "RT2561S" "CardBus" 126.It Em Card Ta Em MAC/BBP Ta Em Bus 127.It "A-Link WL54H" Ta RT2560 Ta PCI 128.It "A-Link WL54PC" Ta RT2560 Ta CardBus 129.It "AirLink101 AWLC5025" Ta RT2661 Ta CardBus 130.It "AirLink101 AWLH5025" Ta RT2661 Ta PCI 131.It "Amigo AWI-914W" Ta RT2560 Ta CardBus 132.It "Amigo AWI-922W" Ta RT2560 Ta mini-PCI 133.It "Amigo AWI-926W" Ta RT2560 Ta PCI 134.It "AMIT WL531C" Ta RT2560 Ta CardBus 135.It "AMIT WL531P" Ta RT2560 Ta PCI 136.It "AOpen AOI-831" Ta RT2560 Ta PCI 137.It "ASUS WL-107G" Ta RT2560 Ta CardBus 138.It "ASUS WL-130g" Ta RT2560 Ta PCI 139.It "Atlantis Land A02-PCI-W54" Ta RT2560 Ta PCI 140.It "Atlantis Land A02-PCM-W54" Ta RT2560 Ta CardBus 141.It "Belkin F5D7000 v3" Ta RT2560 Ta PCI 142.It "Belkin F5D7010 v2" Ta RT2560 Ta CardBus 143.It "Billionton MIWLGRL" Ta RT2560 Ta mini-PCI 144.It "Canyon CN-WF511" Ta RT2560 Ta PCI 145.It "Canyon CN-WF513" Ta RT2560 Ta CardBus 146.It "CC&C WL-2102" Ta RT2560 Ta CardBus 147.It "CNet CWC-854" Ta RT2560 Ta CardBus 148.It "CNet CWP-854" Ta RT2560 Ta PCI 149.It "Compex WL54G" Ta RT2560 Ta CardBus 150.It "Compex WLP54G" Ta RT2560 Ta PCI 151.It "Conceptronic C54RC" Ta RT2560 Ta CardBus 152.It "Conceptronic C54Ri" Ta RT2560 Ta PCI 153.It "D-Link DWA-525 rev A2" Ta RT5392 Ta PCI 154.It "Digitus DN-7001G-RA" Ta RT2560 Ta CardBus 155.It "Digitus DN-7006G-RA" Ta RT2560 Ta PCI 156.It "E-Tech WGPC02" Ta RT2560 Ta CardBus 157.It "E-Tech WGPI02" Ta RT2560 Ta PCI 158.It "Edimax EW-7108PCg" Ta RT2560 Ta CardBus 159.It "Edimax EW-7128g" Ta RT2560 Ta PCI 160.It "Eminent EM3036" Ta RT2560 Ta CardBus 161.It "Eminent EM3037" Ta RT2560 Ta PCI 162.It "Encore ENLWI-G-RLAM" Ta RT2560 Ta PCI 163.It "Encore ENPWI-G-RLAM" Ta RT2560 Ta CardBus 164.It "Fiberline WL-400P" Ta RT2560 Ta PCI 165.It "Fibreline WL-400X" Ta RT2560 Ta CardBus 166.It "Gigabyte GN-WI01GS" Ta RT2561S Ta mini-PCI 167.It "Gigabyte GN-WIKG" Ta RT2560 Ta mini-PCI 168.It "Gigabyte GN-WMKG" Ta RT2560 Ta CardBus 169.It "Gigabyte GN-WP01GS" Ta RT2561S Ta PCI 170.It "Gigabyte GN-WPKG" Ta RT2560 Ta PCI 171.It "Hawking HWC54GR" Ta RT2560 Ta CardBus 172.It "Hawking HWP54GR" Ta RT2560 Ta PCI 173.It "iNexQ CR054g-009 (R03)" Ta RT2560 Ta PCI 174.It "JAHT WN-4054P" Ta RT2560 Ta CardBus 175.It "JAHT WN-4054PCI" Ta RT2560 Ta PCI 176.It "LevelOne WNC-0301 v2" Ta RT2560 Ta PCI 177.It "LevelOne WPC-0301 v2" Ta RT2560 Ta CardBus 178.It "Linksys WMP54G v4" Ta RT2560 Ta PCI 179.It "Micronet SP906GK" Ta RT2560 Ta PCI 180.It "Micronet SP908GK V3" Ta RT2560 Ta CardBus 181.It "Minitar MN54GCB-R" Ta RT2560 Ta CardBus 182.It "Minitar MN54GPC-R" Ta RT2560 Ta PCI 183.It "MSI CB54G2" Ta RT2560 Ta CardBus 184.It "MSI MP54G2" Ta RT2560 Ta mini-PCI 185.It "MSI PC54G2" Ta RT2560 Ta PCI 186.It "OvisLink EVO-W54PCI" Ta RT2560 Ta PCI 187.It "PheeNet HWL-PCIG/RA" Ta RT2560 Ta PCI 188.It "Planex GW-NS300N" Ta RT2860 Ta CardBus 189.It "Pro-Nets CB80211G" Ta RT2560 Ta CardBus 190.It "Pro-Nets PC80211G" Ta RT2560 Ta PCI 191.It "Repotec RP-WB7108" Ta RT2560 Ta CardBus 192.It "Repotec RP-WP0854" Ta RT2560 Ta PCI 193.It "SATech SN-54C" Ta RT2560 Ta CardBus 194.It "SATech SN-54P" Ta RT2560 Ta PCI 195.It "Sitecom WL-112" Ta RT2560 Ta CardBus 196.It "Sitecom WL-115" Ta RT2560 Ta PCI 197.It "SMC SMCWCB-GM" Ta RT2661 Ta CardBus 198.It "SMC SMCWPCI-GM" Ta RT2661 Ta PCI 199.It "SparkLAN WL-685R" Ta RT2560 Ta CardBus 200.It "Surecom EP-9321-g" Ta RT2560 Ta PCI 201.It "Surecom EP-9321-g1" Ta RT2560 Ta PCI 202.It "Surecom EP-9428-g" Ta RT2560 Ta CardBus 203.It "Sweex LC500050" Ta RT2560 Ta CardBus 204.It "Sweex LC700030" Ta RT2560 Ta PCI 205.It "TekComm NE-9321-g" Ta RT2560 Ta PCI 206.It "TekComm NE-9428-g" Ta RT2560 Ta CardBus 207.It "Unex CR054g-R02" Ta RT2560 Ta PCI 208.It "Unex MR054g-R02" Ta RT2560 Ta CardBus 209.It "Zinwell ZWX-G160" Ta RT2560 Ta CardBus 210.It "Zinwell ZWX-G360" Ta RT2560 Ta mini-PCI 211.It "Zinwell ZWX-G361" Ta RT2560 Ta PCI 212.It "Zonet ZEW1500" Ta RT2560 Ta CardBus 213.It "Zonet ZEW1600" Ta RT2560 Ta PCI 214.El 215.Sh EXAMPLES 216Join an existing BSS network (i.e., connect to an access point): 217.Pp 218.Dl ifconfig wlan create wlandev ral0 inet 192.0.2.20/24 219.Pp 220Join a specific BSS network with network name 221.Ar my_net : 222.Bd -literal -offset indent 223ifconfig wlan create wlandev ral0 inet 192.0.2.20/24 \e 224 ssid my_net 225.Ed 226.Pp 227Join a specific BSS network with 40-bit WEP encryption: 228.Bd -literal -offset indent 229ifconfig wlan create wlandev ral0 inet 192.0.2.20/24 \e 230 ssid my_net wepmode on wepkey 0x1234567890 weptxkey 1 231.Ed 232.Pp 233Join a specific BSS network with 104-bit WEP encryption: 234.Bd -literal -offset indent 235ifconfig wlan create wlandev ral0 inet 192.0.2.20/24 \e 236 ssid my_net \e 237 wepmode on wepkey 0x01020304050607080910111213 weptxkey 1 238.Ed 239.Sh DIAGNOSTICS 240.Bl -diag 241.It "ral%d: could not load 8051 microcode" 242An error occurred while attempting to upload the microcode to the onboard 8051 243microcontroller unit. 244.It "ral%d: timeout waiting for MCU to initialize" 245The onboard 8051 microcontroller unit failed to initialize in time. 246.It "ral%d: device timeout" 247A frame dispatched to the hardware for transmission did not complete in time. 248The driver will reset the hardware. 249This should not happen. 250.El 251.Sh SEE ALSO 252.Xr cardbus 4 , 253.Xr intro 4 , 254.Xr wlan 4 , 255.Xr wlan_ccmp 4 , 256.Xr wlan_tkip 4 , 257.Xr wlan_wep 4 , 258.Xr wlan_xauth 4 , 259.Xr networking 7 , 260.Xr hostapd 8 , 261.Xr ifconfig 8 , 262.Xr wpa_supplicant 8 263.Sh HISTORY 264The 265.Nm 266driver first appeared in 267.Ox 3.7 . 268Support for the RT2501 and RT2600 chipsets was added in 269.Ox 3.9 . 270Support for the RT2800 chipset was added in 271.Ox 4.3 . 272Support for the RT2700 chipset was added in 273.Ox 4.4 . 274Support for the RT3090 chipset was added in 275.Ox 4.9 . 276.Sh AUTHORS 277The original 278.Nm 279driver was written by 280.An Damien Bergamini Aq Mt damien@openbsd.org . 281.Sh CAVEATS 282The 283.Nm 284driver does not make use of the hardware cryptographic engine. 285.Pp 286The 287.Nm 288driver does not support any of the 802.11n capabilities offered by 289the RT2700 and RT2800 chipsets. 290Additional work is required in before those features can be supported. 291.Pp 292Host AP mode does not support power saving. 293Clients attempting to use power saving mode may experience significant 294packet loss (disabling power saving on the client will fix this). 295.Pp 296Some PCI 297.Nm 298adapters strictly require a system supporting PCI 2.2 or greater. 299Check the board's PCI version before purchasing the card as it is likely these 300adapters will not work in systems based on older revisions of the PCI 301specification. 302