xref: /freebsd/share/man/man4/run.4 (revision 426f4e5e2e70e2a26d143bd3cc37c509a41684d5)
193b30f1bSAlexander Ziaee.\"-
293b30f1bSAlexander Ziaee.\" SPDX-License-Identifier: ISC
393b30f1bSAlexander Ziaee.\"
4069f1a80SAndrew Thompson.\" $OpenBSD: run.4,v 1.22 2009/11/23 06:16:32 jmc Exp $
5069f1a80SAndrew Thompson.\"
6069f1a80SAndrew Thompson.\" Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
7069f1a80SAndrew Thompson.\"
8069f1a80SAndrew Thompson.\" Permission to use, copy, modify, and distribute this software for any
9069f1a80SAndrew Thompson.\" purpose with or without fee is hereby granted, provided that the above
10069f1a80SAndrew Thompson.\" copyright notice and this permission notice appear in all copies.
11069f1a80SAndrew Thompson.\"
12069f1a80SAndrew Thompson.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13069f1a80SAndrew Thompson.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14069f1a80SAndrew Thompson.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15069f1a80SAndrew Thompson.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16069f1a80SAndrew Thompson.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17069f1a80SAndrew Thompson.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18069f1a80SAndrew Thompson.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19069f1a80SAndrew Thompson.\"
20*426f4e5eSNia Alarie.Dd April 1, 2025
21069f1a80SAndrew Thompson.Dt RUN 4
22aa12cea2SUlrich Spörlein.Os
23069f1a80SAndrew Thompson.Sh NAME
24069f1a80SAndrew Thompson.Nm run
2593b30f1bSAlexander Ziaee.Nd Ralink Technology USB IEEE 802.11a/g/n wireless network driver
26069f1a80SAndrew Thompson.Sh SYNOPSIS
27069f1a80SAndrew ThompsonTo compile this driver into the kernel,
28069f1a80SAndrew Thompsonplace the following lines in your
29069f1a80SAndrew Thompsonkernel configuration file:
30069f1a80SAndrew Thompson.Bd -ragged -offset indent
31069f1a80SAndrew Thompson.Cd "device ehci"
32069f1a80SAndrew Thompson.Cd "device uhci"
33069f1a80SAndrew Thompson.Cd "device ohci"
34069f1a80SAndrew Thompson.Cd "device usb"
35069f1a80SAndrew Thompson.Cd "device run"
36069f1a80SAndrew Thompson.Cd "device wlan"
37069f1a80SAndrew Thompson.Cd "device wlan_amrr"
38069f1a80SAndrew Thompson.Ed
39069f1a80SAndrew Thompson.Pp
4002d09fbbSAndrew ThompsonFirmware is also needed, and provided by:
4102d09fbbSAndrew Thompson.Bd -ragged -offset indent
4202d09fbbSAndrew Thompson.Cd "device runfw"
4302d09fbbSAndrew Thompson.Ed
4402d09fbbSAndrew Thompson.Pp
45069f1a80SAndrew ThompsonAlternatively, to load the driver as a
4602d09fbbSAndrew Thompsonmodule at boot time, place the following lines in
47069f1a80SAndrew Thompson.Xr loader.conf 5 :
48069f1a80SAndrew Thompson.Bd -literal -offset indent
49069f1a80SAndrew Thompsonif_run_load="YES"
5002d09fbbSAndrew Thompsonrunfw_load="YES"
51069f1a80SAndrew Thompson.Ed
52069f1a80SAndrew Thompson.Sh DESCRIPTION
53069f1a80SAndrew ThompsonThe
54069f1a80SAndrew Thompson.Nm
55069f1a80SAndrew Thompsondriver supports USB 2.0 wireless adapters based on the Ralink RT2700U,
56bd4c283dSKevin LoRT2800U, RT3000U and RT3900E chipsets.
57069f1a80SAndrew Thompson.Pp
58069f1a80SAndrew ThompsonThe RT2700U chipset consists of two integrated chips, an RT2770 MAC/BBP and
59069f1a80SAndrew Thompsonan RT2720 (1T2R) or RT2750 (dual-band 1T2R) radio transceiver.
60069f1a80SAndrew Thompson.Pp
61069f1a80SAndrew ThompsonThe RT2800U chipset consists of two integrated chips, an RT2870 MAC/BBP and
62069f1a80SAndrew Thompsonan RT2820 (2T3R) or RT2850 (dual-band 2T3R) radio transceiver.
63069f1a80SAndrew Thompson.Pp
64069f1a80SAndrew ThompsonThe RT3000U is a single-chip solution based on an RT3070 MAC/BBP and
65069f1a80SAndrew Thompsonan RT3020 (1T1R), RT3021 (1T2R) or RT3022 (2T2R) single-band radio
66069f1a80SAndrew Thompsontransceiver.
67069f1a80SAndrew Thompson.Pp
687a7e01caSKevin LoThe RT3900E is a single-chip USB 2.0 802.11n solution.
697a7e01caSKevin LoThe MAC/Baseband Processor can be an RT3593, RT5390, RT5392 or an RT5592.
707a7e01caSKevin LoThe radio can be an RT3053, RT5370, RT5372 or an RT5572.
717a7e01caSKevin LoThe RT3053 chip operates in the 2GHz and 5GHz spectra and supports up to
727a7e01caSKevin Lo3 transmit paths and 3 receiver paths (3T3R).
737a7e01caSKevin LoThe RT5370 chip operates in the 2GHz spectrum and supports 1 transmit path
747a7e01caSKevin Loand 1 receiver path (1T1R).
757a7e01caSKevin LoThe RT5372 chip operates in the 2GHz spectrum and supports up to 2 transmit
767a7e01caSKevin Lopaths and 2 receiver paths (2T2R).
777a7e01caSKevin LoThe RT5572 chip operates in the 2GHz and 5GHz spectra and supports up to
787a7e01caSKevin Lo2 transmit paths and 2 receiver paths (2T2R).
79bd4c283dSKevin Lo.Pp
80069f1a80SAndrew ThompsonThese are the modes the
81069f1a80SAndrew Thompson.Nm
82069f1a80SAndrew Thompsondriver can operate in:
83069f1a80SAndrew Thompson.Bl -tag -width "IBSS-masterXX"
84069f1a80SAndrew Thompson.It BSS mode
85069f1a80SAndrew ThompsonAlso known as
86069f1a80SAndrew Thompson.Em infrastructure
87069f1a80SAndrew Thompsonmode, this is used when associating with an access point, through
88069f1a80SAndrew Thompsonwhich all traffic passes.
89069f1a80SAndrew ThompsonThis mode is the default.
9002d09fbbSAndrew Thompson.It Host AP mode
9102d09fbbSAndrew ThompsonIn this mode the driver acts as an access point (base station)
9202d09fbbSAndrew Thompsonfor other cards.
93069f1a80SAndrew Thompson.It monitor mode
94069f1a80SAndrew ThompsonIn this mode the driver is able to receive packets without
95069f1a80SAndrew Thompsonassociating with an access point.
96069f1a80SAndrew ThompsonThis disables the internal receive filter and enables the card to
97069f1a80SAndrew Thompsoncapture packets from networks which it wouldn't normally have access to,
98069f1a80SAndrew Thompsonor to scan for access points.
99069f1a80SAndrew Thompson.El
100069f1a80SAndrew Thompson.Pp
101069f1a80SAndrew ThompsonThe
102069f1a80SAndrew Thompson.Nm
103069f1a80SAndrew Thompsondriver can be configured to use
104069f1a80SAndrew ThompsonWired Equivalent Privacy (WEP) or
105069f1a80SAndrew ThompsonWi-Fi Protected Access (WPA-PSK and WPA2-PSK).
106069f1a80SAndrew ThompsonWPA is the de facto encryption standard for wireless networks.
107069f1a80SAndrew ThompsonIt is strongly recommended that WEP
108069f1a80SAndrew Thompsonnot be used as the sole mechanism
109069f1a80SAndrew Thompsonto secure wireless communication,
110069f1a80SAndrew Thompsondue to serious weaknesses in it.
111069f1a80SAndrew ThompsonThe
112069f1a80SAndrew Thompson.Nm
113069f1a80SAndrew Thompsondriver offloads both encryption and decryption of data frames to the
114069f1a80SAndrew Thompsonhardware for the WEP40, WEP104, TKIP(+MIC) and CCMP ciphers.
115069f1a80SAndrew Thompson.Pp
116069f1a80SAndrew ThompsonThe
117069f1a80SAndrew Thompson.Nm
118069f1a80SAndrew Thompsondriver can be configured at runtime with
11902d09fbbSAndrew Thompson.Xr ifconfig 8 .
120069f1a80SAndrew Thompson.Sh HARDWARE
1218680e929SChristian BruefferThe
1228680e929SChristian Brueffer.Nm
1238680e929SChristian Bruefferdriver supports the following wireless adapters:
124069f1a80SAndrew Thompson.Pp
12593b30f1bSAlexander Ziaee.Bl -bullet -offset indent -compact
12693b30f1bSAlexander Ziaee.It
12793b30f1bSAlexander ZiaeeAirlink101 AWLL6090
12893b30f1bSAlexander Ziaee.It
12993b30f1bSAlexander ZiaeeASUS USB-N11
13093b30f1bSAlexander Ziaee.It
13193b30f1bSAlexander ZiaeeASUS USB-N13 ver. A1
13293b30f1bSAlexander Ziaee.It
13393b30f1bSAlexander ZiaeeASUS USB-N14
13493b30f1bSAlexander Ziaee.It
13593b30f1bSAlexander ZiaeeASUS USB-N66
13693b30f1bSAlexander Ziaee.It
13793b30f1bSAlexander ZiaeeASUS WL-160N
13893b30f1bSAlexander Ziaee.It
13993b30f1bSAlexander ZiaeeBelkin F5D8051 ver 3000
14093b30f1bSAlexander Ziaee.It
14193b30f1bSAlexander ZiaeeBelkin F5D8053
14293b30f1bSAlexander Ziaee.It
14393b30f1bSAlexander ZiaeeBelkin F5D8055
14493b30f1bSAlexander Ziaee.It
14593b30f1bSAlexander ZiaeeBelkin F6D4050 ver 1
14693b30f1bSAlexander Ziaee.It
14793b30f1bSAlexander ZiaeeBelkin F9L1103
14893b30f1bSAlexander Ziaee.It
14993b30f1bSAlexander ZiaeeBuffalo WLI-UC-AG300N
15093b30f1bSAlexander Ziaee.It
15193b30f1bSAlexander ZiaeeBuffalo WLI-UC-G300HP
15293b30f1bSAlexander Ziaee.It
15393b30f1bSAlexander ZiaeeBuffalo WLI-UC-G300N
15493b30f1bSAlexander Ziaee.It
15593b30f1bSAlexander ZiaeeBuffalo WLI-UC-G301N
15693b30f1bSAlexander Ziaee.It
15793b30f1bSAlexander ZiaeeBuffalo WLI-UC-GN
15893b30f1bSAlexander Ziaee.It
15993b30f1bSAlexander ZiaeeBuffalo WLI-UC-GNM
16093b30f1bSAlexander Ziaee.It
16193b30f1bSAlexander ZiaeeBuffalo WLI-UC-GNM2
16293b30f1bSAlexander Ziaee.It
16393b30f1bSAlexander ZiaeeCorega CG-WLUSB2GNL
16493b30f1bSAlexander Ziaee.It
16593b30f1bSAlexander ZiaeeCorega CG-WLUSB2GNR
16693b30f1bSAlexander Ziaee.It
16793b30f1bSAlexander ZiaeeCorega CG-WLUSB300AGN
16893b30f1bSAlexander Ziaee.It
16993b30f1bSAlexander ZiaeeCorega CG-WLUSB300GNM
17093b30f1bSAlexander Ziaee.It
17193b30f1bSAlexander ZiaeeD-Link DWA-130 rev B1
17293b30f1bSAlexander Ziaee.It
17393b30f1bSAlexander ZiaeeD-Link DWA-130 rev F1
17493b30f1bSAlexander Ziaee.It
17593b30f1bSAlexander ZiaeeD-Link DWA-140 rev B1, B2, B3, \&D1
17693b30f1bSAlexander Ziaee.It
17793b30f1bSAlexander ZiaeeD-Link DWA-160 rev B2
17893b30f1bSAlexander Ziaee.It
17993b30f1bSAlexander ZiaeeD-Link DWA-162
18093b30f1bSAlexander Ziaee.It
18193b30f1bSAlexander ZiaeeDrayTek Vigor N61
18293b30f1bSAlexander Ziaee.It
18393b30f1bSAlexander ZiaeeEdimax EW-7711UAn
18493b30f1bSAlexander Ziaee.It
18593b30f1bSAlexander ZiaeeEdimax EW-7711UTn
18693b30f1bSAlexander Ziaee.It
18793b30f1bSAlexander ZiaeeEdimax EW-7717Un
18893b30f1bSAlexander Ziaee.It
18993b30f1bSAlexander ZiaeeEdimax EW-7718Un
19093b30f1bSAlexander Ziaee.It
19193b30f1bSAlexander ZiaeeEdimax EW-7733UnD
19293b30f1bSAlexander Ziaee.It
19393b30f1bSAlexander ZiaeeGigabyte GN-WB30N
19493b30f1bSAlexander Ziaee.It
19593b30f1bSAlexander ZiaeeGigabyte GN-WB31N
19693b30f1bSAlexander Ziaee.It
19793b30f1bSAlexander ZiaeeGigabyte GN-WB32L
19893b30f1bSAlexander Ziaee.It
19993b30f1bSAlexander ZiaeeHawking HWDN1
20093b30f1bSAlexander Ziaee.It
20193b30f1bSAlexander ZiaeeHawking HWUN1
20293b30f1bSAlexander Ziaee.It
20393b30f1bSAlexander ZiaeeHawking HWUN2
20493b30f1bSAlexander Ziaee.It
20593b30f1bSAlexander ZiaeeHercules HWNU-300
20693b30f1bSAlexander Ziaee.It
20793b30f1bSAlexander ZiaeeLinksys WUSB54GC v3
20893b30f1bSAlexander Ziaee.It
20993b30f1bSAlexander ZiaeeLinksys WUSB600N
21093b30f1bSAlexander Ziaee.It
21193b30f1bSAlexander ZiaeeLogitec LAN-W150N/U2
21293b30f1bSAlexander Ziaee.It
21393b30f1bSAlexander ZiaeeMvix Nubbin MS-811N
21493b30f1bSAlexander Ziaee.It
21593b30f1bSAlexander ZiaeePanda Wireless PAU06
21693b30f1bSAlexander Ziaee.It
21793b30f1bSAlexander ZiaeePlanex GW-USMicroN
21893b30f1bSAlexander Ziaee.It
21993b30f1bSAlexander ZiaeePlanex GW-US300MiniS
22093b30f1bSAlexander Ziaee.It
22193b30f1bSAlexander ZiaeeSitecom WL-182
22293b30f1bSAlexander Ziaee.It
22393b30f1bSAlexander ZiaeeSitecom WL-188
22493b30f1bSAlexander Ziaee.It
22593b30f1bSAlexander ZiaeeSitecom WL-301
22693b30f1bSAlexander Ziaee.It
22793b30f1bSAlexander ZiaeeSitecom WL-302
22893b30f1bSAlexander Ziaee.It
22993b30f1bSAlexander ZiaeeSitecom WL-315
23093b30f1bSAlexander Ziaee.It
231*426f4e5eSNia AlarieSitecom WL-364
232*426f4e5eSNia Alarie.It
23393b30f1bSAlexander ZiaeeSMC SMCWUSBS-N2
23493b30f1bSAlexander Ziaee.It
23593b30f1bSAlexander ZiaeeSweex LW303
23693b30f1bSAlexander Ziaee.It
23793b30f1bSAlexander ZiaeeSweex LW313
23893b30f1bSAlexander Ziaee.It
23993b30f1bSAlexander ZiaeeTP-LINK TL-WDN3200
24093b30f1bSAlexander Ziaee.It
24193b30f1bSAlexander ZiaeeTP-LINK TL-WN321G v4
24293b30f1bSAlexander Ziaee.It
24393b30f1bSAlexander ZiaeeTP-LINK TL-WN727N v3
24493b30f1bSAlexander Ziaee.It
24593b30f1bSAlexander ZiaeeUnex DNUR-81
24693b30f1bSAlexander Ziaee.It
24793b30f1bSAlexander ZiaeeUnex DNUR-82
24893b30f1bSAlexander Ziaee.It
24993b30f1bSAlexander ZiaeeZyXEL NWD2705
25093b30f1bSAlexander Ziaee.It
25193b30f1bSAlexander ZiaeeZyXEL NWD210N
25293b30f1bSAlexander Ziaee.It
25393b30f1bSAlexander ZiaeeZyXEL NWD270N
254069f1a80SAndrew Thompson.El
255069f1a80SAndrew Thompson.Sh EXAMPLES
256069f1a80SAndrew ThompsonJoin an existing BSS network (i.e., connect to an access point):
25793b30f1bSAlexander Ziaee.Pp
25893b30f1bSAlexander Ziaee.Dl ifconfig wlan create wlandev run0 inet 192.0.2.20/24
259069f1a80SAndrew Thompson.Pp
260069f1a80SAndrew ThompsonJoin a specific BSS network with network name
26193b30f1bSAlexander Ziaee.Ar my_net :
262069f1a80SAndrew Thompson.Pp
26393b30f1bSAlexander Ziaee.Dl ifconfig wlan create wlandev run0 ssid my_net up
264069f1a80SAndrew Thompson.Pp
265069f1a80SAndrew ThompsonJoin a specific BSS network with 64-bit WEP encryption:
266069f1a80SAndrew Thompson.Bd -literal -offset indent
267069f1a80SAndrew Thompsonifconfig wlan create wlandev run0 ssid my_net \e
268069f1a80SAndrew Thompson    wepmode on wepkey 0x1234567890 weptxkey 1 up
269069f1a80SAndrew Thompson.Ed
270069f1a80SAndrew Thompson.Pp
271069f1a80SAndrew ThompsonJoin a specific BSS network with 128-bit WEP encryption:
272069f1a80SAndrew Thompson.Bd -literal -offset indent
273069f1a80SAndrew Thompsonifconfig wlan create wlandev run0 wlanmode adhoc ssid my_net \e
274069f1a80SAndrew Thompson    wepmode on wepkey 0x01020304050607080910111213 weptxkey 1
275069f1a80SAndrew Thompson.Ed
276069f1a80SAndrew Thompson.Sh DIAGNOSTICS
277069f1a80SAndrew Thompson.Bl -diag
2781cc4c2f9SGordon Bergling.It "run%d: failed load firmware of file runfw"
279069f1a80SAndrew ThompsonFor some reason, the driver was unable to read the microcode file from the
280069f1a80SAndrew Thompsonfilesystem.
281069f1a80SAndrew ThompsonThe file might be missing or corrupted.
282069f1a80SAndrew Thompson.It "run%d: could not load 8051 microcode"
283069f1a80SAndrew ThompsonAn error occurred while attempting to upload the microcode to the onboard 8051
284069f1a80SAndrew Thompsonmicrocontroller unit.
285069f1a80SAndrew Thompson.It "run%d: device timeout"
286069f1a80SAndrew ThompsonA frame dispatched to the hardware for transmission did not complete in time.
287069f1a80SAndrew ThompsonThe driver will reset the hardware.
288069f1a80SAndrew ThompsonThis should not happen.
289069f1a80SAndrew Thompson.El
290069f1a80SAndrew Thompson.Sh SEE ALSO
291069f1a80SAndrew Thompson.Xr intro 4 ,
292069f1a80SAndrew Thompson.Xr netintro 4 ,
293923544aaSBaptiste Daroussin.Xr runfw 4 ,
294069f1a80SAndrew Thompson.Xr usb 4 ,
295069f1a80SAndrew Thompson.Xr wlan 4 ,
296069f1a80SAndrew Thompson.Xr wlan_amrr 4 ,
297069f1a80SAndrew Thompson.Xr wlan_ccmp 4 ,
298069f1a80SAndrew Thompson.Xr wlan_tkip 4 ,
299069f1a80SAndrew Thompson.Xr wlan_wep 4 ,
300069f1a80SAndrew Thompson.Xr wlan_xauth 4 ,
30193b30f1bSAlexander Ziaee.Xr networking 7 ,
302069f1a80SAndrew Thompson.Xr hostapd 8 ,
303923544aaSBaptiste Daroussin.Xr ifconfig 8 ,
30450d922a0SGlen Barber.Xr wpa_supplicant 8
305069f1a80SAndrew Thompson.Sh HISTORY
306069f1a80SAndrew ThompsonThe
307069f1a80SAndrew Thompson.Nm
308069f1a80SAndrew Thompsondriver first appeared in
309069f1a80SAndrew Thompson.Ox 4.5 .
310069f1a80SAndrew Thompson.Sh AUTHORS
311069f1a80SAndrew ThompsonThe
312069f1a80SAndrew Thompson.Nm
313069f1a80SAndrew Thompsondriver was written by
3146c899950SBaptiste Daroussin.An Damien Bergamini Aq Mt damien@openbsd.org .
315069f1a80SAndrew Thompson.Sh CAVEATS
316069f1a80SAndrew ThompsonThe
317069f1a80SAndrew Thompson.Nm
318dd1d42a9SAdrian Chadddriver supports some of the 11n capabilities found in the
3197a7e01caSKevin LoRT2800, RT3000 and RT3900 chipsets.
320