xref: /openbsd/share/man/man4/ral.4 (revision b6ef1ff8)
1.\" $OpenBSD: ral.4,v 1.117 2021/10/15 08:10:44 kn Exp $
2.\"
3.\" Copyright (c) 2005-2010 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: October 15 2021 $
18.Dt RAL 4
19.Os
20.Sh NAME
21.Nm ral
22.Nd Ralink Technology/MediaTek IEEE 802.11a/b/g/n wireless network device
23.Sh SYNOPSIS
24.Cd "ral* at cardbus?"
25.Cd "ral* at pci?"
26.Sh DESCRIPTION
27The
28.Nm
29driver supports PCI/PCIe/CardBus wireless adapters based on the Ralink RT2500,
30RT2501, RT2600, RT2700, RT2800, RT3090 and RT3900E chipsets.
31.Pp
32The RT2500 chipset is the first generation of 802.11b/g adapters from Ralink.
33It consists of two integrated chips, an RT2560 MAC/BBP and an RT2525 radio
34transceiver.
35.Pp
36The RT2501 chipset is the second generation of 802.11a/b/g adapters from
37Ralink.
38It consists of two integrated chips, an RT2561 MAC/BBP and an RT2527 radio
39transceiver.
40This chipset provides support for the IEEE 802.11e standard with multiple
41hardware transmission queues and allows scatter/gather for efficient DMA
42operations.
43.Pp
44The RT2600 chipset consists of two integrated chips, an RT2661 MAC/BBP and an
45RT2529 radio transceiver.
46This chipset uses the MIMO (multiple-input multiple-output) technology with
47multiple radio transceivers to extend the operating range of the adapter and
48to achieve higher throughput.
49However, the RT2600 chipset does not support any of the 802.11n features.
50.Pp
51The RT2700 chipset is a low-cost version of the RT2800 chipset.
52It supports a single transmit path and two receiver paths (1T2R).
53It consists of two integrated chips, an RT2760 or RT2790 (PCIe) MAC/BBP and
54an RT2720 (2.4GHz) or RT2750 (2.4GHz/5GHz) radio transceiver.
55.Pp
56The RT2800 chipset is the first generation of 802.11n adapters from Ralink.
57It consists of two integrated chips, an RT2860 or RT2890 (PCIe) MAC/BBP and
58an RT2820 (2.4GHz) or RT2850 (2.4GHz/5GHz) radio transceiver.
59The RT2800 chipset supports two transmit paths and up to three receiver
60paths (2T2R/2T3R).
61It can achieve speeds up to 144Mbps (20MHz bandwidth) and 300Mbps (40MHz
62bandwidth.)
63.Pp
64The RT3090 chipset is the first generation of single-chip 802.11n adapters
65from Ralink.
66.Pp
67The RT3900E chipset is a single-chip 802.11n adapter from Ralink.
68The MAC/Baseband Processor can be an RT3290, RT5390 or RT5392.
69The RT3290 is a combo 802.11n and Bluetooth chip.
70It operates in the 2GHz spectrum and supports one transmit path and on one
71receiver path (1T1R).
72The RT5390 chip operates in the 2GHz spectrum and supports one transmit path
73and one receiver path (1T1R).
74The RT5392 chip operates in the 2GHz spectrum and supports up to two transmit
75paths and two receiver paths (2T2R).
76.Pp
77These are the modes the
78.Nm
79driver can operate in:
80.Bl -tag -width "IBSS-masterXX"
81.It BSS mode
82Also known as
83.Em infrastructure
84mode, this is used when associating with an access point, through
85which all traffic passes.
86This mode is the default.
87.It IBSS mode
88Also known as
89.Em IEEE ad-hoc
90mode or
91.Em peer-to-peer
92mode.
93This is the standardized method of operating without an access point.
94Stations associate with a service set.
95However, actual connections between stations are peer-to-peer.
96.It Host AP
97In this mode the driver acts as an access point (base station)
98for other cards.
99.It monitor mode
100In this mode the driver is able to receive packets without
101associating with an access point.
102This disables the internal receive filter and enables the card to
103capture packets from networks which it wouldn't normally have access to,
104or to scan for access points.
105.El
106.Pp
107The
108.Nm
109driver can be configured to use
110Wired Equivalent Privacy (WEP) or
111Wi-Fi Protected Access (WPA1 and WPA2).
112WPA2 is the current encryption standard for wireless networks.
113It is strongly recommended that neither WEP nor WPA1
114are used as the sole mechanism to secure wireless communication,
115due to serious weaknesses.
116WPA1 is disabled by default and may be enabled using the option
117.Qq Cm wpaprotos Ar wpa1,wpa2 .
118For standard WPA networks which use pre-shared keys (PSK),
119keys are configured using the
120.Qq Cm wpakey
121option.
122WPA-Enterprise networks require use of the wpa_supplicant package.
123.Pp
124The
125.Nm
126driver relies on the software 802.11 stack for both encryption and
127decryption of data frames on the RT2500, RT2501 and RT2600 chipsets.
128On the RT2700 and RT2800 chipsets, the
129.Nm
130driver offloads both encryption and decryption of data frames to the
131hardware for the WEP40, WEP104, TKIP(+MIC) and CCMP ciphers.
132.Pp
133The transmit speed is user-selectable or can be adapted automatically by the
134driver depending on the number of hardware transmission retries.
135.Pp
136In Host AP mode,
137devices with the RT2700, RT2800, RT3090, and RT3900E chipsets
138are compatible with clients using powersave.
139.Pp
140The
141.Nm
142driver can be configured at runtime with
143.Xr ifconfig 8
144or on boot with
145.Xr hostname.if 5 .
146.Sh FILES
147The RT2501, RT2600, RT2700 and RT2800 chipsets require the following firmware
148files to be loaded when an interface is brought up:
149.Pp
150.Bl -tag -width Ds -offset indent -compact
151.It /etc/firmware/ral-rt2561
152.It /etc/firmware/ral-rt2561s
153.It /etc/firmware/ral-rt2661
154.It /etc/firmware/ral-rt2860
155.It /etc/firmware/ral-rt3290
156.El
157.Pp
158The RT2500 chipset does not require a firmware file to operate.
159.Sh HARDWARE
160The following PCI adapters should work:
161.Bd -filled
162A-Link WL54H.
163AirLive WN-5000PCI.
164Amigo AWI-926W.
165AMIT WL531P.
166AOpen AOI-831.
167ASUS WL-130G.
168ASUS WL-130N.
169ASUS WIFI-G-AAY.
170Atlantis Land A02-PCI-W54.
171Belkin F5D7000 v3.
172Canyon CN-WF511.
173CNet CWP-854.
174Compex WLP54G.
175Conceptronic C54Ri.
176Corega CG-WLPCI54GL.
177D-Link DWA-525 rev A2.
178Digitus DN-7006G-RA.
179Dynalink WLG25PCI.
180E-Tech WGPI02.
181Edimax EW-7128g.
182Edimax EW-7628Ig.
183Edimax EW-7728In.
184Eminent EM3037.
185Encore ENLWI-G-RLAM.
186Eusso UGL2454-VPR.
187Fiberline WL-400P.
188Foxconn WLL-3350.
189Gigabyte GN-WPKG.
190Gigabyte GN-WP01GS.
191Gigabyte GN-WI02GM.
192Gigabyte GN-WP01GM.
193Hawking HWP54GR.
194Hercules HWGPCI-54.
195iNexQ CR054g-009 (R03).
196JAHT WN-4054PCI.
197KCORP LifeStyle KLS-660.
198LevelOne WNC-0301 v2.
199Linksys WMP54G v4.
200Longshine LCS-8031N.
201Micronet SP906GK.
202Minitar MN54GPC-R.
203MSI MS-6834.
204MSI PC54G2.
205OvisLink EVO-W54PCI.
206PheeNet HWL-PCIG/RA.
207Planex PCI-GW-DS300N.
208Pro-Nets PC80211G.
209Repotec RP-WP0854.
210SATech SN-54P.
211Signamax 065-1798.
212Sitecom WL-115.
213SparkLAN WL-660R.
214Surecom EP-9321-g.
215Surecom EP-9321-g1.
216Sweex LC700030.
217TekComm NE-9321-g.
218Tonze PC-6200C.
219Unex CR054g-R02.
220Zinwell ZWX-G361.
221Zonet ZEW1600.
222.Ed
223.Pp
224The following CardBus adapters should work:
225.Bd -filled
226A-Link WL54PC.
227Alfa AWPC036.
228Amigo AWI-914W.
229AMIT WL531C.
230ASUS WL-107G.
231Atlantis Land A02-PCM-W54.
232Belkin F5D7010 v2.
233Canyon CN-WF513.
234CC&C WL-2102.
235CNet CWC-854.
236Compex WL54.
237Conceptronic C54RC.
238Corega CG-WLCB54GL.
239Digiconnect WL591C.
240Digitus DN-7001G-RA.
241Dynalink WLG25CARDBUS.
242E-Tech WGPC02.
243E-Tech WGPC03.
244Edimax EW-7108PCg.
245Edimax EW-7708PN.
246Eminent EM3036.
247Encore ENPWI-G-RLAM.
248Eusso UGL2454-01R.
249Fiberline WL-400X.
250Gigabyte GN-WMKG.
251Gigabyte GN-WM01GS.
252Gigabyte GN-WM01GM.
253Hawking HWC54GR.
254Hercules HWGPCMCIA-54.
255JAHT WN-4054P(E).
256KCORP LifeStyle KLS-611.
257LevelOne WPC-0301 v2.
258Micronet SP908GK V3.
259Minitar MN54GCB-R.
260MSI CB54G2.
261MSI MS-6835.
262Pro-Nets CB80211G.
263Repotec RP-WB7108.
264SATech SN-54C.
265Sitecom WL-112.
266SparkLAN WL-611R.
267SparkLAN WPCR-501.
268Surecom EP-9428-g.
269Sweex LC500050.
270TekComm NE-9428-g.
271Tonze PW-6200C.
272Unex MR054g-R02.
273Zinwell ZWX-G160.
274Zonet ZEW1500.
275.Ed
276.Pp
277The following Mini PCI adapters should work:
278.Bd -filled
279Amigo AWI-922W.
280Billionton MIWLGRL.
281Gigabyte GN-WIKG.
282Gigabyte GN-WI01GS.
283Gigabyte GN-WI02GM.
284MSI MP54G2.
285MSI MS-6833.
286SparkLAN WMIR-215GN.
287Tonze PC-620C.
288Zinwell ZWX-G360.
289.Ed
290.Sh EXAMPLES
291The following example scans for available networks:
292.Pp
293.Dl # ifconfig ral0 scan
294.Pp
295The following
296.Xr hostname.if 5
297example configures ral0 to join network
298.Dq mynwid ,
299using WPA key
300.Dq mywpakey ,
301obtaining an IP address using DHCP:
302.Bd -literal -offset indent
303nwid mynwid wpakey mywpakey
304inet autoconf
305.Ed
306.Pp
307The following
308.Xr hostname.if 5
309example creates a host-based access point on boot:
310.Bd -literal -offset indent
311mediaopt hostap
312nwid mynwid wpakey mywpakey
313inet 192.168.1.1 255.255.255.0
314.Ed
315.Sh SEE ALSO
316.Xr arp 4 ,
317.Xr cardbus 4 ,
318.Xr ifmedia 4 ,
319.Xr intro 4 ,
320.Xr netintro 4 ,
321.Xr pci 4 ,
322.Xr hostname.if 5 ,
323.Xr hostapd 8 ,
324.Xr ifconfig 8
325.Sh HISTORY
326The
327.Nm
328driver first appeared in
329.Ox 3.7 .
330Support for the RT2501 and RT2600 chipsets was added in
331.Ox 3.9 .
332Support for the RT2800 chipset was added in
333.Ox 4.3 .
334Support for the RT2700 chipset was added in
335.Ox 4.4 .
336Support for the RT3090 chipset was added in
337.Ox 4.9 .
338.Sh AUTHORS
339The
340.Nm
341driver was written by
342.An Damien Bergamini Aq Mt damien.bergamini@free.fr .
343.Sh CAVEATS
344The
345.Nm
346driver does not make use of the hardware cryptographic engine present on
347the RT2500, RT2501 and RT2600 chipsets.
348.Pp
349The
350.Nm
351driver does not support any of the 802.11n capabilities offered by
352the RT2700, RT2800 and RT3090 chipsets.
353Additional work is required in
354.Xr ieee80211 9
355before those features can be supported.
356.Pp
357On the RT2500, RT2501 and RT2600 chipsets, host AP mode doesn't
358support power saving.
359Clients attempting to use power saving mode may experience significant
360packet loss.
361.Pp
362Some PCI
363.Nm
364adapters seem to strictly require a system supporting PCI 2.2 or greater and
365will likely not work in systems based on older revisions of the PCI
366specification.
367Check the board's PCI version before purchasing the card.
368