1.\" $OpenBSD: uath.4,v 1.38 2021/10/24 12:32:42 kn 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: October 24 2021 $ 19.Dt UATH 4 20.Os 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 2500MHz 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 382500MHz (802.11b/g) or 4900 and 5850MHz (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. 64It can be typically configured in one of three modes: 65no encryption; 40-bit encryption; or 104-bit encryption. 66It is strongly recommended that WEP 67not be used as the sole mechanism 68to secure wireless communication, 69due to serious weaknesses in it. 70.Pp 71The 72.Nm 73driver can be configured at runtime with 74.Xr ifconfig 8 75or on boot with 76.Xr hostname.if 5 . 77.Sh FILES 78The following firmware file is loaded when a device is plugged: 79.Pp 80.Bl -tag -width Ds -offset indent -compact 81.It Pa /etc/firmware/uath-ar5523 82.El 83.Pp 84This firmware file is not freely redistributable. 85.Pp 86A prepackaged version of the firmware can be installed using 87.Xr fw_update 1 . 88.Sh HARDWARE 89The following adapters should work: 90.Bl -column "TRENDware International TEW-444UB" "AR5005UX" -offset 6n 91.It Em Adapter Ta Em Chipset 92.\".It Belkin F6D3050 AR5005UX 93.It Li "Compex WLU108AG" Ta AR5005UX 94.It Li "Compex WLU108G" Ta AR5005UG 95.\".It Li "D-Link DWL-AG132" Ta AR5005UX 96.It Li "D-Link DWL-G132" Ta AR5005UG 97.\".It Li "Edimax EW-7315Ug" Ta AR5005UG (AR2414???) 98.\".It Li "Lancom USB-54ag" Ta AR5005UX 99.\".It Li "NEC WL54TU" Ta AR5005UX 100.It Li "IODATA WN-G54/US" Ta AR5005UG 101.It Li "MELCO WLI-U2-KAMG54" Ta AR5005UX 102.It Li "Netgear WG111T" Ta AR5005UG 103.It Li "Netgear WG111U" Ta AR5005UX 104.It Li "Netgear WPN111" Ta AR5005UG 105.It Li "Olitec 000544" Ta AR5005UG 106.It Li "Philips SNU6500" Ta AR5005UG 107.It Li "PLANET WDL-U357" Ta AR5005UX 108.\".It Li "Senao WUB-8004" Ta AR5005UX 109.It Li "Siemens Gigaset 108" Ta AR5005UG 110.It Li "SMC SMCWUSBT-G" Ta AR5005UG 111.It Li "SMC SMCWUSBT-G2" Ta AR5005UG 112.\".It Li "SparkLAN WL-685GS" Ta AR5005UG 113.It Li "SparkLAN WL-785A" Ta AR5005UX 114.It Li "TP-Link TL-WN620G" Ta AR5005UG 115.It Li "TRENDware International TEW-444UB" Ta AR5005UG 116.It Li "TRENDware International TEW-504UB" Ta AR5005UX 117.It Li "Unex Technology UR054ag" Ta AR5005UX 118.\".It Li "Wistron NeWeb DCUA-81" Ta AR5005UX 119.\".It Li "Wistron NeWeb DRUA-81" Ta AR5005UG 120.\".It Li "Wistron NeWeb DRUA-82" Ta AR5005UX 121.\".It Li "ZyXEL G-200 v2" Ta AR5005UG 122.It Li "ZyXEL XtremeMIMO M-202" Ta AR5005UX 123.El 124.Sh EXAMPLES 125The following example scans for available networks: 126.Pp 127.Dl # ifconfig uath0 scan 128.Pp 129The following 130.Xr hostname.if 5 131example configures uath0 to join network 132.Dq mynwid , 133using WEP key 134.Dq mywepkey , 135obtaining an IP address using DHCP: 136.Bd -literal -offset indent 137join mynwid nwkey mywepkey 138inet autoconf 139.Ed 140.Sh DIAGNOSTICS 141.Bl -diag 142.It "uath0: error N, could not read firmware ..." 143For some reason, the driver was unable to read the firmware image from the 144filesystem. 145The file might be missing or corrupted. 146.It "uath0: could not load firmware (error=...)" 147An error occurred while attempting to upload the firmware to the onboard 148MIPS R4000 processor. 149.It "uath0: could not initialize adapter" 150The firmware was uploaded successfully but did not initialize properly or 151in time. 152.It "uath0: could not send command 0xXX (error=...)" 153An attempt to send a command to the firmware failed. 154.It "uath0: timeout waiting for command reply" 155A read command was sent to the firmware but the firmware failed to reply in 156time. 157.It "uath0: device timeout" 158A frame dispatched to the hardware for transmission did not complete in time. 159The driver will reset the hardware. 160This should not happen. 161.El 162.Sh SEE ALSO 163.Xr arp 4 , 164.Xr ifmedia 4 , 165.Xr intro 4 , 166.Xr netintro 4 , 167.Xr usb 4 , 168.Xr hostname.if 5 , 169.Xr ifconfig 8 170.Sh HISTORY 171The 172.Nm 173driver first appeared in 174.Ox 4.0 . 175.Sh AUTHORS 176The 177.Nm 178driver was written by 179.An Damien Bergamini Aq Mt damien.bergamini@free.fr . 180.Sh CAVEATS 181Atheros Communications refuses to release any documentation for their products. 182Atheros proprietary 108 Mbps mode (aka Super AG mode) is not supported. 183.Pp 184The 185.Nm 186driver does not attempt to do any regulation of radio frequencies. 187.Pp 188This driver does not support powersave mode. 189