xref: /netbsd/share/man/man4/ral.4 (revision 6550d01e)
1.\" $NetBSD: ral.4,v 1.8 2009/12/13 17:31:53 wiz Exp $
2.\" $OpenBSD: ral.4,v 1.53 2006/05/06 17:26:25 jmc Exp $
3.\"
4.\" Copyright (c) 2005, 2006
5.\"	Damien Bergamini <damien.bergamini@free.fr>
6.\"
7.\" Permission to use, copy, modify, and distribute this software for any
8.\" purpose with or without fee is hereby granted, provided that the above
9.\" copyright notice and this permission notice appear in all copies.
10.\"
11.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18.\"
19.Dd December 13, 2009
20.Dt RAL 4
21.Os
22.Sh NAME
23.Nm ral
24.Nd Ralink Technology IEEE 802.11a/b/g wireless network driver
25.Sh SYNOPSIS
26.Cd "ral* at cardbus?"
27.Cd "ral* at pci?"
28.Cd "ral* at uhub? port ?"
29.Sh DESCRIPTION
30The
31.Nm
32driver supports PCI/CardBus wireless adapters based on the Ralink RT2500,
33RT2501, and RT2600 chipsets.
34The
35.Nm ral
36driver supports USB 2.0 wireless adapters based on the Ralink RT2500USB
37chipset.
38.Pp
39The RT2500 chipset is the first generation of 802.11b/g adapters from Ralink.
40It consists of two integrated chips, an RT2560 or RT2570(USB) MAC/BBP
41and an RT2525 or RT2526(USB) radio transceiver.
42.Pp
43The RT2501 chipset is the second generation of 802.11b/g adapters from Ralink.
44It consists of two integrated chips, an RT2561 MAC/BBP and an RT2527 radio
45transceiver.
46This chipset provides support for the IEEE 802.11e standard with multiple
47hardware transmission queues and allows scatter/gather for efficient DMA
48operations.
49.Pp
50The RT2600 chipset consists of two integrated chips, an RT2661 MAC/BBP and an
51RT2529 radio transceiver.
52This chipset uses the MIMO (multiple-input multiple-output) technology with
53multiple antennas to extend the operating range of the adapter and to achieve
54higher throughput.
55MIMO will be the basis of the future IEEE 802.11n standard.
56.Pp
57These are the modes the
58.Nm
59driver can operate in:
60.Bl -tag -width "IBSS-masterXX"
61.It BSS mode
62Also known as
63.Em infrastructure
64mode, this is used when associating with an access point, through
65which all traffic passes.
66This mode is the default.
67.It IBSS mode
68Also known as
69.Em IEEE ad-hoc
70mode or
71.Em peer-to-peer
72mode.
73This is the standardized method of operating without an access point.
74Stations associate with a service set.
75However, actual connections between stations are peer-to-peer.
76.It Host AP
77In this mode the driver acts as an access point (base station)
78for other cards.
79.It monitor mode
80In this mode the driver is able to receive packets without
81associating with an access point.
82This disables the internal receive filter and enables the card to
83capture packets from networks which it wouldn't normally have access to,
84or to scan for access points.
85.El
86.Pp
87.Nm
88supports software WEP.
89Wired Equivalent Privacy (WEP) is the de facto encryption standard
90for wireless networks.
91It can be typically configured in one of three modes:
92no encryption; 40-bit encryption; or 104-bit encryption.
93Unfortunately, due to serious weaknesses in WEP protocol
94it is strongly recommended that it not be used as the
95sole mechanism to secure wireless communication.
96WEP is not enabled by default.
97.Pp
98The transmit speed is user-selectable or can be adapted automatically by the
99driver depending on the received signal strength and on the number of hardware
100transmission retries.
101See
102.Xr rssadapt 9
103for more information.
104.Sh CONFIGURATION
105The
106.Nm
107driver can be configured at runtime with
108.Xr ifconfig 8
109or on boot with
110.Xr ifconfig.if 5
111using the following parameters:
112.Bl -tag -width Ds
113.It Cm bssid Ar bssid
114Set the desired BSSID.
115.It Fl bssid
116Unset the desired BSSID.
117The interface will automatically select a BSSID in this mode, which is
118the default.
119.It Cm chan Ar n
120Set the channel (radio frequency) to be used by the driver based on
121the given channel ID
122.Ar n .
123.It Fl chan
124Unset the desired channel to be used by the driver.
125The driver will automatically select a channel in this mode, which is
126the default.
127.It Cm media Ar media
128The
129.Nm
130driver supports the following
131.Ar media
132types:
133.Pp
134.Bl -tag -width autoselect -compact
135.It Cm autoselect
136Enable autoselection of the media type and options.
137.It Cm DS1
138Set 802.11b DS 1Mbps operation.
139.It Cm DS2
140Set 802.11b DS 2Mbps operation.
141.It Cm DS5
142Set 802.11b DS 5.5Mbps operation.
143.It Cm DS11
144Set 802.11b DS 11Mbps operation.
145.It Cm OFDM6
146Set 802.11a/g OFDM 6Mbps operation.
147.It Cm OFDM9
148Set 802.11a/g OFDM 9Mbps operation.
149.It Cm OFDM12
150Set 802.11a/g OFDM 12Mbps operation.
151.It Cm OFDM18
152Set 802.11a/g OFDM 18Mbps operation.
153.It Cm OFDM24
154Set 802.11a/g OFDM 24Mbps operation.
155.It Cm OFDM36
156Set 802.11a/g OFDM 36Mbps operation.
157.It Cm OFDM48
158Set 802.11a/g OFDM 48Mbps operation.
159.It Cm OFDM54
160Set 802.11a/g OFDM 54Mbps operation.
161.El
162.It Cm mediaopt Ar opts
163The
164.Nm
165driver supports the following media options:
166.Pp
167.Bl -tag -width monitor -compact
168.It Cm hostap
169Select Host AP operation.
170.It Cm ibss
171Select IBSS operation.
172.It Cm monitor
173Select monitor mode.
174.El
175.It Fl mediaopt Ar opts
176Disable the specified media options on the driver and return it to the
177default mode of operation (BSS).
178.It Cm mode Ar mode
179The
180.Nm
181driver supports the following modes:
182.Pp
183.Bl -tag -width 11b -compact
184.It Cm 11a
185Force 802.11a operation.
186.It Cm 11b
187Force 802.11b operation.
188.It Cm 11g
189Force 802.11g operation.
190.El
191.It Cm nwid Ar id
192Set the network ID.
193The
194.Ar id
195can either be any text string up to 32 characters in length,
196or a series of hexadecimal digits up to 64 digits.
197An empty
198.Ar id
199string allows the interface to connect to any available access points.
200By default the
201.Nm
202driver uses an empty string.
203Note that network ID is synonymous with Extended Service Set ID (ESSID).
204.It Cm nwkey Ar key
205Enable WEP encryption using the specified
206.Ar key .
207The
208.Ar key
209can either be a string, a series of hexadecimal digits (preceded by
210.Sq 0x ) ,
211or a set of keys of the form
212.Dq n:k1,k2,k3,k4 ,
213where
214.Sq n
215specifies which of the keys will be used for transmitted packets,
216and the four keys,
217.Dq k1
218through
219.Dq k4 ,
220are configured as WEP keys.
221If a set of keys is specified, a comma
222.Pq Sq \&,
223within the key must be escaped with a backslash.
224Note that if multiple keys are used, their order must be the same within
225the network.
226.Nm
227is capable of using both 40-bit (5 characters or 10 hexadecimal digits)
228or 104-bit (13 characters or 26 hexadecimal digits) keys.
229.It Fl nwkey
230Disable WEP encryption.
231This is the default mode of operation.
232.El
233.Sh FILES
234The following firmware files are potentially loaded when an interface is
235brought up:
236.Pp
237.Bl -tag -width Ds -offset indent -compact
238.It /libdata/firmware/ral/ral-rt2561
239.It /libdata/firmware/ral/ral-rt2561s
240.It /libdata/firmware/ral/ral-rt2661
241.El
242.Pp
243RT2500 adapters do not require a firmware to operate.
244.Sh HARDWARE
245The following PCI adapters should work:
246.Bd -filled
247A-Link WL54H.
248Amigo AWI-926W.
249AMIT WL531P.
250AOpen AOI-831.
251ASUS WL-130g.
252ASUS WIFI-G-AAY.
253Atlantis Land A02-PCI-W54.
254Belkin F5D7000 v3.
255Canyon CN-WF511.
256CNet CWP-854.
257Compex WLP54G.
258Conceptronic C54Ri.
259Corega CG-WLPCI54GL.
260Digitus DN-7006G-RA.
261Dynalink WLG25PCI.
262E-Tech WGPI02.
263Edimax EW-7128g.
264Eminent EM3037.
265Encore ENLWI-G-RLAM.
266Eusso UGL2454-VPR.
267Fiberline WL-400P.
268Foxconn WLL-3350.
269Gigabyte GN-WPKG.
270Hama WLAN PCI Card 54 Mbps.
271Hawking HWP54GR.
272Hercules HWGPCI-54.
273iNexQ CR054g-009 (R03).
274JAHT WN-4054PCI.
275KCORP LifeStyle KLS-660.
276LevelOne WNC-0301 v2.
277Linksys WMP54G v4.
278Micronet SP906GK.
279Minitar MN54GPC-R.
280MSI MS-6834.
281MSI PC54G2.
282OvisLink EVO-W54PCI.
283PheeNet HWL-PCIG/RA.
284Pro-Nets PC80211G.
285Repotec RP-WP0854.
286SATech SN-54P.
287Signamax 065-1798.
288Sitecom WL-115.
289SparkLAN WL-660R.
290Surecom EP-9321-g.
291Sweex LC700030.
292TekComm NE-9321-g.
293Tonze PC-6200C.
294Unex CR054g-R02.
295Zinwell ZWX-G361.
296Zonet ZEW1600.
297.Ed
298.Pp
299The following CardBus adapters should work:
300.Bd -filled
301A-Link WL54PC.
302Alfa AWPC036.
303Amigo AWI-914W.
304AMIT WL531C.
305ASUS WL-107G.
306Atlantis Land A02-PCM-W54.
307Belkin F5D7010 v2.
308Canyon CN-WF513.
309CC\*[Am]C WL-2102.
310CNet CWC-854.
311Conceptronic C54RC.
312Corega CG-WLCB54GL.
313Digitus DN-7001G-RA.
314Dynalink WLG25CARDBUS.
315E-Tech WGPC02.
316E-Tech WGPC03.
317Edimax EW-7108PCg.
318Eminent EM3036.
319Encore ENPWI-G-RLAM.
320Eusso UGL2454-01R.
321Fiberline WL-400X.
322Gigabyte GN-WMKG.
323Hawking HWC54GR.
324Hercules HWGPCMCIA-54.
325JAHT WN-4054P(E).
326KCORP LifeStyle KLS-611.
327LevelOne WPC-0301 v2.
328Micronet SP908GK V3.
329Minitar MN54GCB-R.
330MSI CB54G2.
331MSI MS-6835.
332Pro-Nets CB80211G.
333Repotec RP-WB7108.
334SATech SN-54C.
335Sitecom WL-112.
336SparkLAN WL-611R.
337Surecom EP-9428-g.
338Sweex LC500050.
339TekComm NE-9428-g.
340Tonze PW-6200C.
341Unex MR054g-R02.
342Zinwell ZWX-G160.
343Zonet ZEW1500.
344.Ed
345.Pp
346The following Mini PCI adapters should work:
347.Bd -filled
348Amigo AWI-922W.
349Billionton MIWLGRL.
350Gigabyte GN-WIKG.
351MSI MP54G2.
352MSI MS-6833.
353Tonze PC-620C.
354Zinwell ZWX-G360.
355.Ed
356.Pp
357The following USB 2.0 adapters should work:
358.Bd -filled
359AMIT WL532U.
360ASUS WL-167g.
361Belkin F5D7050 v2000.
362Buffalo WLI-U2-KG54.
363Buffalo WLI-U2-KG54-AI.
364Buffalo WLI-U2-KG54-YB.
365CNet CWD-854.
366Compex WLU54G 2A1100.
367Conceptronic C54RU.
368D-Link DWL-G122 (b1).
369Dynalink WLG25USB.
370E-Tech WGUS02.
371Gigabyte GN-WBKG.
372Hercules HWGUSB2-54.
373KCORP LifeStyle KLS-685.
374Linksys HU200-TS.
375Linksys WUSB54G v4.
376Linksys WUSB54GP v4.
377MSI MS-6861.
378MSI MS-6865.
379MSI MS-6869.
380Nintendo Wi-Fi USB Connector.
381OvisLink Evo-W54USB.
382SerComm UB801R.
383SparkLAN WL-685R.
384Surecom EP-9001-g.
385Sweex LC100060.
386Tonze UW-6200C.
387Zinwell ZWX-G261.
388Zonet ZEW2500P.
389.Ed
390.Sh EXAMPLES
391The following
392.Xr ifconfig.if 5
393example creates a host-based access point on boot:
394.Bd -literal -offset indent
395inet 192.168.1.1 netmask 255.255.255.0 media autoselect \e
396	mediaopt hostap nwid my_net chan 11
397.Ed
398.Pp
399Configure ral0 for WEP, using hex key
400.Dq 0x1deadbeef1 :
401.Bd -literal -offset indent
402# ifconfig ral0 nwkey 0x1deadbeef1
403.Ed
404.Pp
405Return ral0 to its default settings:
406.Bd -literal -offset indent
407# ifconfig ral0 -bssid -chan media autoselect \e
408	nwid "" -nwkey
409.Ed
410.Pp
411Join an existing BSS network,
412.Dq my_net :
413.Bd -literal -offset indent
414# ifconfig ral0 192.168.1.1 netmask 0xffffff00 nwid my_net
415.Ed
416.Sh DIAGNOSTICS
417.Bl -diag
418.It "ral%d: could not read microcode %s"
419For some reason, the driver was unable to read the microcode file from the
420filesystem.
421The file might be missing or corrupted.
422.It "ral%d: could not load 8051 microcode"
423An error occurred while attempting to upload the microcode to the onboard 8051
424microcontroller unit.
425.It "ral%d: timeout waiting for MCU to initialize"
426The onboard 8051 microcontroller unit failed to initialize in time.
427.It "ral%d: device timeout"
428A frame dispatched to the hardware for transmission did not complete in time.
429The driver will reset the hardware.
430This should not happen.
431.El
432.Sh SEE ALSO
433.Xr arp 4 ,
434.Xr cardbus 4 ,
435.Xr ifmedia 4 ,
436.Xr intro 4 ,
437.Xr netintro 4 ,
438.Xr pci 4 ,
439.Xr usb 4 ,
440.Xr ifconfig.if 5 ,
441.Xr hostapd 8 ,
442.Xr ifconfig 8
443.Pp
444Ralink Technology:
445.Pa http://www.ralinktech.com
446.Sh HISTORY
447The
448.Nm
449driver first appeared in
450.Ox 3.7
451and in
452.Nx 3.0 .
453Support for the RT2501 and RT2600 chipsets was added in
454.Ox 3.9
455and in
456.Nx 4.0 .
457.Sh AUTHORS
458The
459.Nm
460driver was written by
461.An Damien Bergamini Aq damien@openbsd.org .
462.Sh CAVEATS
463Some PCI
464.Nm
465adapters seem to strictly require a system supporting PCI 2.2 or greater and
466will likely not work in systems based on older revisions of the PCI
467specification.
468Check the board's PCI version before purchasing the card.
469.Pp
470The USB
471.Nm ral
472driver supports automatic control of the transmit speed in BSS mode only.
473Therefore the use of a USB
474.Nm ral
475adapter in Host AP mode is discouraged.
476