xref: /openbsd/share/man/man4/ural.4 (revision 73471bf0)
1.\" $OpenBSD: ural.4,v 1.25 2021/10/15 08:10:45 kn 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: October 15 2021 $
19.Dt URAL 4
20.Os
21.Sh NAME
22.Nm ural
23.Nd Ralink Technology/MediaTek USB IEEE 802.11b/g wireless network device
24.Sh SYNOPSIS
25.Cd "ural* at uhub? port ?"
26.Sh DESCRIPTION
27The
28.Nm
29driver supports USB 2.0 wireless adapters based on the Ralink RT2500USB
30chipset.
31.Pp
32The RT2500USB chipset is the first generation of 802.11b/g adapters from Ralink.
33It consists of two integrated chips, an RT2570 MAC/BBP and an RT2526 radio
34transceiver.
35.Pp
36These are the modes the
37.Nm
38driver can operate in:
39.Bl -tag -width "IBSS-masterXX"
40.It BSS mode
41Also known as
42.Em infrastructure
43mode, this is used when associating with an access point, through
44which all traffic passes.
45This mode is the default.
46.It IBSS mode
47Also known as
48.Em IEEE ad-hoc
49mode or
50.Em peer-to-peer
51mode.
52This is the standardized method of operating without an access point.
53Stations associate with a service set.
54However, actual connections between stations are peer-to-peer.
55.It Host AP
56In this mode the driver acts as an access point (base station)
57for other cards.
58.It monitor mode
59In this mode the driver is able to receive packets without
60associating with an access point.
61This disables the internal receive filter and enables the card to
62capture packets from networks which it wouldn't normally have access to,
63or to scan for access points.
64.El
65.Pp
66The
67.Nm
68driver can be configured to use
69Wired Equivalent Privacy (WEP) or
70Wi-Fi Protected Access (WPA1 and WPA2).
71WPA2 is the current encryption standard for wireless networks.
72It is strongly recommended that neither WEP nor WPA1
73are used as the sole mechanism to secure wireless communication,
74due to serious weaknesses.
75WPA1 is disabled by default and may be enabled using the option
76.Qq Cm wpaprotos Ar wpa1,wpa2 .
77For standard WPA networks which use pre-shared keys (PSK),
78keys are configured using the
79.Qq Cm wpakey
80option.
81WPA-Enterprise networks require use of the wpa_supplicant package.
82The
83.Nm
84driver relies on the software 802.11 stack for both encryption and decryption
85of data frames.
86.Pp
87The transmit speed is user-selectable or can be adapted automatically by the
88driver depending on the number of hardware transmission retries.
89.Pp
90The
91.Nm
92driver can be configured at runtime with
93.Xr ifconfig 8
94or on boot with
95.Xr hostname.if 5 .
96.Sh HARDWARE
97The following adapters should work:
98.Pp
99.Bl -tag -width Ds -offset indent -compact
100.It AMIT WL532U
101.It ASUS WL-167g v1
102.It Belkin F5D7050 v2000
103.It Buffalo WLI-U2-KG54
104.It Buffalo WLI-U2-KG54-AI
105.It Buffalo WLI-U2-KG54-YB
106.It CNet CWD-854
107.It Compex WLU54G 2A1100
108.It Conceptronic C54RU
109.It D-Link DWL-G122 (b1)
110.It Dynalink WLG25USB
111.It E-Tech WGUS02
112.It Eminent EM3035
113.It Gigabyte GN-WBKG
114.It Hercules HWGUSB2-54
115.It KCORP LifeStyle KLS-685
116.It Linksys HU200-TS
117.It Linksys WUSB54G v4
118.It Linksys WUSB54GP v4
119.It MSI MS-6861
120.It MSI MS-6865
121.It MSI MS-6869
122.It Nintendo Wi-Fi USB Connector
123.It Nova Tech NV-902W
124.It OvisLink Evo-W54USB
125.It SerComm UB801R
126.It SparkLAN WL-685R
127.It Sphairon UB801R
128.It Surecom EP-9001-g rev 3A
129.It Sweex LC100060
130.It Tonze UW-6200C
131.It Zaapa ZNWUSB-54
132.It Zinwell ZPlus-G250
133.It Zinwell ZWX-G261
134.It Zonet ZEW2500P
135.El
136.Sh EXAMPLES
137The following example scans for available networks:
138.Pp
139.Dl # ifconfig ural0 scan
140.Pp
141The following
142.Xr hostname.if 5
143example configures ural0 to join network
144.Dq mynwid ,
145using WPA key
146.Dq mywpakey ,
147obtaining an IP address using DHCP:
148.Bd -literal -offset indent
149nwid mynwid wpakey mywpakey
150inet autoconf
151.Ed
152.Pp
153The following
154.Xr hostname.if 5
155example creates a host-based access point on boot:
156.Bd -literal -offset indent
157mediaopt hostap
158nwid mynwid wpakey mywpakey
159inet 192.168.1.1 255.255.255.0
160.Ed
161.Sh DIAGNOSTICS
162.Bl -diag
163.It "ural0: device timeout"
164A frame dispatched to the hardware for transmission did not complete in time.
165The driver will reset the hardware.
166This should not happen.
167.El
168.Sh SEE ALSO
169.Xr arp 4 ,
170.Xr ifmedia 4 ,
171.Xr intro 4 ,
172.Xr netintro 4 ,
173.Xr usb 4 ,
174.Xr hostname.if 5 ,
175.Xr hostapd 8 ,
176.Xr ifconfig 8
177.Sh HISTORY
178The
179.Nm
180driver first appeared in
181.Ox 3.7 .
182.Sh AUTHORS
183The
184.Nm
185driver was written by
186.An Damien Bergamini Aq Mt damien.bergamini@free.fr .
187.Sh CAVEATS
188The
189.Nm
190driver supports automatic control of the transmit speed in BSS mode only.
191Therefore the use of an
192.Nm
193adapter in Host AP mode is discouraged.
194.Pp
195Host AP mode doesn't support power saving.
196Clients attempting to use power saving mode may experience significant
197packet loss (disabling power saving on the client will fix this).
198