1.\" $OpenBSD: rtw.4,v 1.42 2013/07/16 16:05:49 schwarze Exp $ 2.\" 3.\" Copyright (c) 2004 Jonathan Gray <jsg@openbsd.org> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: July 16 2013 $ 18.Dt RTW 4 19.Os 20.Sh NAME 21.Nm rtw 22.Nd Realtek RTL8180L IEEE 802.11b wireless network device 23.Sh SYNOPSIS 24.Cd "rtw* at cardbus?" 25.Cd "rtw* at pci?" 26.Sh DESCRIPTION 27The 28.Nm 29driver supports PCI/CardBus 802.11b wireless adapters based on the 30Realtek RTL8180L. 31.Pp 32A variety of radio transceivers can be found in these devices, including 33the Philips SA2400A, Maxim MAX2820, and GCT GRF5101. 34.Pp 35These are the modes the 36.Nm 37driver can operate in: 38.Bl -tag -width "IBSS-masterXX" 39.It BSS mode 40Also known as 41.Em infrastructure 42mode, this is used when associating with an access point, through 43which all traffic passes. 44This mode is the default. 45.It IBSS mode 46Also known as 47.Em IEEE ad-hoc 48mode or 49.Em peer-to-peer 50mode. 51This is the standardized method of operating without an access point. 52Stations associate with a service set. 53However, actual connections between stations are peer-to-peer. 54.It Host AP 55In this mode the driver acts as an access point (base station) 56for other cards. 57.It monitor mode 58In this mode the driver is able to receive packets without 59associating with an access point. 60This disables the internal receive filter and enables the card to 61capture packets from networks which it wouldn't normally have access to, 62or to scan for access points. 63.El 64.Pp 65The 66.Nm 67driver can be configured to use software 68Wired Equivalent Privacy (WEP). 69It is strongly recommended that WEP 70not be used as the sole mechanism 71to secure wireless communication, 72due to serious weaknesses in it. 73.Pp 74The 75.Nm 76driver can be configured at runtime with 77.Xr ifconfig 8 78or on boot with 79.Xr hostname.if 5 . 80.Sh HARDWARE 81The following adapters should work: 82.Bl -column "GigaFast WF721-AEX (R* serial)" "GRF5101" "Cardbus" -offset 6n 83.It Em Card Ta Em Radio Ta Em Bus 84.\".It Li "Acer Aspire 1357 LMi" Ta SA2400 Ta Mini PCI 85.It Li "Allnet ALL0182" Ta SA2400 Ta CardBus 86.\".It Li "Belkin F5D6001 V3" Ta SA2400 Ta PCI 87.It Li "Belkin F5D6020 V3" Ta SA2400 Ta CardBus 88.It Li "Buffalo WLI-CB-B11" Ta SA2400 Ta CardBus 89.It Li "Corega CG-WLCB11V3" Ta SA2400 Ta CardBus 90.\".It Li "D-Link DWL-510" Ta SA2400 Ta PCI 91.\".It Li "D-Link DWL-520 rev D" Ta ? Ta PCI 92.It Li "D-Link DWL-610" Ta ? Ta CardBus 93.\".It Li "Encore ENLWI-PCI1-NT" Ta SA2400 Ta PCI 94.It Li "Edimax EW-7106" Ta SA2400 Ta CardBus 95.\".It Li "Edimax EW-7126" Ta GRF5101 Ta PCI 96.\".It Li "Gigabyte GN-WLMR101" Ta SA2400 Ta PCI 97.It Li "GigaFast WF721-AEX (R* serial)" Ta "GRF5101" Ta CardBus 98.\".It Li "HomeLine HLW-PCC200" Ta "GRF5101" Ta CardBus 99.It Li "Jensen AirLink 6011" Ta GRF5101 Ta CardBus 100.It Li "Level-One WPC-0101" Ta SA2400 Ta CardBus 101.It Li "Linksys WPC11 v4" Ta MAX2820 Ta CardBus 102.\".It Li "Longshine LCS-8031-R" Ta GRF5101 Ta PCI 103.\".It Li "Mentor WLPCI04330073" Ta SA2400 Ta CardBus 104.\".It Li "Micronet SP906BB" Ta ? Ta PCI 105.It Li "Netgear MA521" Ta SA2400 Ta CardBus 106.It Li "Ovislink AirLive WL-1120PCM" Ta SA2400 Ta CardBus 107.\".It Li "Pheenet WL-11PCIR" Ta SA2400 Ta PCI 108.It Li "Planet WL-3553" Ta SA2400 Ta CardBus 109.It Li "Q-Tec 770WC" Ta SA2400 Ta CardBus 110.It Li "Q-Tec 775WC" Ta SA2400 Ta CardBus 111.\".It "Repotec RP-WP7126" Ta GRF5101 Ta PCI 112.It Li "Roper FreeLan 802.11b" Ta SA2400 Ta CardBus 113.It Li "SAFECOM SWLCR-1100" Ta SA2400 Ta CardBus 114.\".It Li "Surecom EP-9428" Ta ? Ta CardBus 115.\".It Li "Sweex LC700010" Ta GRF5101 Ta PCI 116.\".It "Tonze PC-2100T" Ta GRF5101 Ta PCI 117.\".It Li "Topcom Skyr@cer 4011b" Ta ? Ta CardBus 118.\".It "TP-Link TL-WN250/251" Ta GRF5101 Ta PCI 119.It Li "TRENDnet TEW-226PC" Ta ? Ta CardBus 120.\".It Li "TRENDnet TEW-288PI" Ta SA2400 Ta PCI 121.It Li "VCTnet PC-11B1" Ta SA2400 Ta CardBus 122.It Li "Winstron CB-200B" Ta SA2400 Ta CardBus 123.It Li "Zonet ZEW1000" Ta GRF5101 Ta CardBus 124.El 125.Sh EXAMPLES 126The following example scans for available networks: 127.Pp 128.Dl # ifconfig rtw0 scan 129.Pp 130The following 131.Xr hostname.if 5 132example configures rtw0 to join network 133.Dq mynwid , 134using WEP key 135.Dq mywepkey , 136obtaining an IP address using DHCP: 137.Bd -literal -offset indent 138nwid mynwid 139nwkey mywepkey 140dhcp 141.Ed 142.Pp 143The following 144.Xr hostname.if 5 145example creates a host-based access point on boot: 146.Bd -literal -offset indent 147inet 192.168.1.1 255.255.255.0 148mediaopt hostap 149nwid mynwid 150nwkey mywepkey 151.Ed 152.Sh SEE ALSO 153.Xr arp 4 , 154.Xr cardbus 4 , 155.Xr ifmedia 4 , 156.Xr intro 4 , 157.Xr netintro 4 , 158.Xr pci 4 , 159.Xr hostname.if 5 , 160.Xr hostapd 8 , 161.Xr ifconfig 8 162.Rs 163.%T Realtek 164.%U http://www.realtek.com.tw 165.Re 166.Sh HISTORY 167The 168.Nm 169device driver first appeared in 170.Ox 3.7 . 171.Sh AUTHORS 172.An -nosplit 173The 174.Nm 175driver was written by 176.An David Young Aq Mt dyoung@NetBSD.org 177and ported to 178.Ox 179by 180.An Jonathan Gray Aq Mt jsg@openbsd.org . 181.Sh CAVEATS 182GCT refuse to release any documentation on their GRF5101 RF transceiver. 183.Pp 184While PCI devices will attach most of them are not able to transmit. 185.Pp 186Host AP mode doesn't support power saving. 187Clients attempting to use power saving mode may experience significant 188packet loss (disabling power saving on the client will fix this). 189