xref: /openbsd-src/share/man/man4/uath.4 (revision a28daedfc357b214be5c701aa8ba8adb29a7f1c2)
1.\" $OpenBSD: uath.4,v 1.17 2008/09/23 13:54:08 jmc Exp $
2.\"
3.\" Copyright (c) 2006
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: September 23 2008 $
19.Os
20.Dt UATH 4
21.Sh NAME
22.Nm uath
23.Nd Atheros USB IEEE 802.11a/b/g wireless network device
24.Sh SYNOPSIS
25.Cd "uath* at uhub? port ?"
26.Sh DESCRIPTION
27The
28.Nm
29driver supports USB 2.0 wireless network devices based on Atheros
30Communications fifth generation AR5005UG and AR5005UX chipsets.
31.Pp
32The AR5005UG chipset is made of an AR5523 multiprotocol MAC/baseband processor
33and an AR2112 Radio-on-a-Chip that can operate between 2300 and 2500 MHz
34(802.11b/g).
35.Pp
36The AR5005UX chipset is made of an AR5523 multiprotocol MAC/baseband processor
37and an AR5112 dual band Radio-on-a-Chip that can operate between 2300 and
382500 MHz (802.11b/g) or 4900 and 5850 MHz (802.11a).
39.Pp
40The AR5005UG and AR5005UX chipsets both have an integrated 32-bit MIPS
41R4000-class processor that runs a firmware and manages, among other things,
42the automatic control of the transmit rate and the calibration of the radio.
43.Pp
44These are the modes the
45.Nm
46driver can operate in:
47.Bl -tag -width "IBSS-masterXX"
48.It BSS mode
49Also known as
50.Em infrastructure
51mode, this is used when associating with an access point, through
52which all traffic passes.
53This mode is the default.
54.It monitor mode
55In this mode the driver is able to receive packets without
56associating with an access point.
57This disables the internal receive filter and enables the card to
58capture packets from networks which it wouldn't normally have access to,
59or to scan for access points.
60.El
61.Pp
62.Nm
63supports hardware WEP.
64Wired Equivalent Privacy (WEP) is the de facto encryption standard
65for wireless networks.
66It can be typically configured in one of three modes:
67no encryption; 40-bit encryption; or 104-bit encryption.
68Unfortunately, due to serious weaknesses in WEP protocol
69it is strongly recommended that it not be used as the
70sole mechanism to secure wireless communication.
71WEP is not enabled by default.
72.Pp
73The
74.Nm
75driver can be configured at runtime with
76.Xr ifconfig 8
77or on boot with
78.Xr hostname.if 5 .
79.Sh FILES
80The following firmware file is loaded when a device is plugged:
81.Pp
82.Bl -tag -width Ds -offset indent -compact
83.It /etc/firmware/uath-ar5523
84.El
85.Pp
86This firmware file is not freely redistributable.
87.Pp
88A prepackaged version of the firmware, designed to be used with
89.Xr pkg_add 1 ,
90can be found at:
91.Pp
92.Pa http://damien.bergamini.free.fr/packages/openbsd/uath-firmware-1.0p0.tgz
93.Sh HARDWARE
94The following adapters should work:
95.Pp
96.Bl -column -compact "TRENDware International TEW-444UB" "AR5005UX" -offset 6n
97.It Em "Adapter	Chipset"
98.\".It Belkin F6D3050	AR5005UX
99.It Li "Compex WLU108AG" Ta AR5005UX
100.It Li "Compex WLU108G" Ta AR5005UG
101.\".It Li "D-Link DWL-AG132" Ta AR5005UX
102.It Li "D-Link DWL-G132" Ta AR5005UG
103.\".It Li "Edimax EW-7315Ug" Ta AR5005UG (AR2414???)
104.\".It Li "Lancom USB-54ag" Ta AR5005UX
105.\".It Li "NEC WL54TU" Ta AR5005UX
106.It Li "IODATA WN-G54/US" Ta AR5005UG
107.It Li "MELCO WLI-U2-KAMG54" Ta AR5005UX
108.It Li "Netgear WG111T" Ta AR5005UG
109.It Li "Netgear WG111U" Ta AR5005UX
110.It Li "Netgear WPN111" Ta AR5005UG
111.It Li "Olitec 000544" Ta AR5005UG
112.It Li "Philips SNU6500" Ta AR5005UG
113.It Li "PLANET WDL-U357" Ta AR5005UX
114.\".It Li "Senao WUB-8004" Ta AR5005UX
115.It Li "Siemens Gigaset 108" Ta AR5005UG
116.It Li "SMC SMCWUSBT-G" Ta AR5005UG
117.It Li "SMC SMCWUSBT-G2" Ta AR5005UG
118.\".It Li "SparkLAN WL-685GS" Ta AR5005UG
119.It Li "SparkLAN WL-785A" Ta AR5005UX
120.It Li "TP-Link TL-WN620G" Ta AR5005UG
121.It Li "TRENDware International TEW-444UB" Ta AR5005UG
122.It Li "TRENDware International TEW-504UB" Ta AR5005UX
123.It Li "Unex Technology UR054ag" Ta AR5005UX
124.\".It Li "Wistron NeWeb DCUA-81" Ta AR5005UX
125.\".It Li "Wistron NeWeb DRUA-81" Ta AR5005UG
126.\".It Li "Wistron NeWeb DRUA-82" Ta AR5005UX
127.\".It Li "ZyXEL G-200 v2" Ta AR5005UG
128.It Li "ZyXEL XtremeMIMO M-202" Ta AR5005UX
129.El
130.Pp
131An up to date list can be found at
132.Pa http://customerproducts.atheros.com/customerproducts/default.asp .
133.Sh EXAMPLES
134The following
135.Xr hostname.if 5
136example configures uath0 to join whatever network is available on boot,
137using WEP key
138.Dq 0x1deadbeef1 ,
139channel 11, obtaining an IP address using DHCP:
140.Bd -literal -offset indent
141dhcp NONE NONE NONE nwkey 0x1deadbeef1 chan 11
142.Ed
143.Pp
144Configure uath0 for WEP, using hex key
145.Dq 0x1deadbeef1 :
146.Bd -literal -offset indent
147# ifconfig uath0 nwkey 0x1deadbeef1
148.Ed
149.Pp
150Return uath0 to its default settings:
151.Bd -literal -offset indent
152# ifconfig uath0 -bssid -chan media autoselect \e
153        nwid "" -nwkey
154.Ed
155.Pp
156Join an existing BSS network,
157.Dq my_net :
158.Bd -literal -offset indent
159# ifconfig uath0 192.168.1.1 netmask 0xffffff00 nwid my_net
160.Ed
161.Sh DIAGNOSTICS
162.Bl -diag
163.It "uath%d: error %d, could not read firmware %s"
164For some reason, the driver was unable to read the firmware image from the
165filesystem.
166The file might be missing or corrupted.
167.It "uath%d: could not load firmware (error=%s)"
168An error occurred while attempting to upload the firmware to the onboard
169MIPS R4000 processor.
170.It "uath%d: could not initialize adapter (error=%d)"
171The firmware was uploaded successfully but did not initialize properly or
172in time.
173.It "uath%d: could not send command (error=%s)"
174An attempt to send a command to the firmware failed.
175.It "uath%d: timeout waiting for command reply"
176A read command was sent to the firmware but the firmware failed to reply in
177time.
178.It "uath%d: device timeout"
179A frame dispatched to the hardware for transmission did not complete in time.
180The driver will reset the hardware.
181This should not happen.
182.El
183.Sh SEE ALSO
184.Xr arp 4 ,
185.Xr ifmedia 4 ,
186.Xr intro 4 ,
187.Xr netintro 4 ,
188.Xr usb 4 ,
189.Xr hostname.if 5 ,
190.Xr ifconfig 8
191.Pp
192Atheros Communications AR5005UG/AR5005UX:
193.Pa http://www.atheros.com/pt/bulletins/AR5005UGBulletin.pdf
194.Pa http://www.atheros.com/pt/bulletins/AR5005UXBulletin.pdf
195.Sh HISTORY
196The
197.Nm
198driver first appeared in
199.Ox 4.0 .
200.Sh AUTHORS
201The
202.Nm
203driver was written by
204.An Damien Bergamini Aq damien@openbsd.org .
205.Sh CAVEATS
206Atheros Communications refuses to release any documentation for their products.
207Atheros proprietary 108 Mbps mode (aka Super AG mode) is not supported.
208.Pp
209The
210.Nm
211driver does not attempt to do any regulation of radio frequencies.
212