1*d09093c1Skn.\" $OpenBSD: rtwn.4,v 1.12 2021/10/24 12:32:42 kn Exp $ 275881c88Sstsp.\" 375881c88Sstsp.\" Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 475881c88Sstsp.\" Copyright (c) 2015 Stefan Sperling <stsp@openbsd.org> 575881c88Sstsp.\" 675881c88Sstsp.\" Permission to use, copy, modify, and distribute this software for any 775881c88Sstsp.\" purpose with or without fee is hereby granted, provided that the above 875881c88Sstsp.\" copyright notice and this permission notice appear in all copies. 975881c88Sstsp.\" 1075881c88Sstsp.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 1175881c88Sstsp.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1275881c88Sstsp.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1375881c88Sstsp.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1475881c88Sstsp.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1575881c88Sstsp.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1675881c88Sstsp.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1775881c88Sstsp.\" 18*d09093c1Skn.Dd $Mdocdate: October 24 2021 $ 1975881c88Sstsp.Dt RTWN 4 2075881c88Sstsp.Os 2175881c88Sstsp.Sh NAME 2275881c88Sstsp.Nm rtwn 23f7d62a0cSjmatthew.Nd Realtek RTL8188CE/RTL8188EE/RTL8192CE/RTL8723AE PCIe IEEE 802.11b/g/n 24f7d62a0cSjmatthewwireless network device 2575881c88Sstsp.Sh SYNOPSIS 2675881c88Sstsp.Cd "rtwn* at pci? port ?" 2775881c88Sstsp.Sh DESCRIPTION 2875881c88SstspThe 2975881c88Sstsp.Nm 3075881c88Sstspdriver supports PCIe wireless network devices based on the Realtek 31f7d62a0cSjmatthewRTL8188CE, RTL8188EE, RTL8192CE and RTL8723AE chipsets. 3275881c88Sstsp.Pp 33f7d62a0cSjmatthewThe RTL8188CE, RTL8188EE and RTL8723AE are highly integrated 802.11n adapters 34f7d62a0cSjmatthewthat combine a MAC, a 1T1R capable baseband and an RF in a single chip. 35f7d62a0cSjmatthewThe RTL8723AE also includes a Bluetooth 2.1/3.0/4.0 controller. 3623902c3eSstsp.Pp 3723902c3eSstspThe RTL8192CE is a highly integrated multiple-in, multiple-out (MIMO) 3823902c3eSstsp802.11n adapter that combines a MAC, a 2T2R capable baseband and an 3923902c3eSstspRF in a single chip. 4023902c3eSstsp.Pp 4123902c3eSstspThese devices operate in the 2GHz spectrum only. 4275881c88Sstsp.Pp 4375881c88SstspThese are the modes the 4475881c88Sstsp.Nm 4575881c88Sstspdriver can operate in: 4675881c88Sstsp.Bl -tag -width "IBSS-masterXX" 4775881c88Sstsp.It BSS mode 4875881c88SstspAlso known as 4975881c88Sstsp.Em infrastructure 5075881c88Sstspmode, this is used when associating with an access point, through 5175881c88Sstspwhich all traffic passes. 5275881c88SstspThis mode is the default. 5375881c88Sstsp.It monitor mode 5475881c88SstspIn this mode the driver is able to receive packets without 5575881c88Sstspassociating with an access point. 5675881c88SstspThis disables the internal receive filter and enables the card to 5775881c88Sstspcapture packets from networks which it wouldn't normally have access to, 5875881c88Sstspor to scan for access points. 5975881c88Sstsp.El 6075881c88Sstsp.Pp 6175881c88SstspThe 6275881c88Sstsp.Nm 6375881c88Sstspdriver can be configured to use 6475881c88SstspWired Equivalent Privacy (WEP) or 6523b4b584SsthenWi-Fi Protected Access (WPA1 and WPA2). 6623b4b584SsthenWPA2 is the current encryption standard for wireless networks. 6723b4b584SsthenIt is strongly recommended that neither WEP nor WPA1 6823b4b584Ssthenare used as the sole mechanism to secure wireless communication, 6923b4b584Ssthendue to serious weaknesses. 7023b4b584SsthenWPA1 is disabled by default and may be enabled using the option 7123b4b584Ssthen.Qq Cm wpaprotos Ar wpa1,wpa2 . 7223b4b584SsthenFor standard WPA networks which use pre-shared keys (PSK), 7323b4b584Ssthenkeys are configured using the 7423b4b584Ssthen.Qq Cm wpakey 7523b4b584Ssthenoption. 7623b4b584SsthenWPA-Enterprise networks require use of the wpa_supplicant package. 7775881c88Sstsp.Pp 7875881c88SstspThe 7975881c88Sstsp.Nm 8075881c88Sstspdriver can be configured at runtime with 8175881c88Sstsp.Xr ifconfig 8 8275881c88Sstspor on boot with 8375881c88Sstsp.Xr hostname.if 5 . 8475881c88Sstsp.Sh FILES 851e1b982aSkevloThe adapter needs firmware files to run, which are loaded on demand by 861e1b982aSkevlothe driver when the device is attached: 8775881c88Sstsp.Pp 8875881c88Sstsp.Bl -tag -width Ds -offset indent -compact 891e1b982aSkevlo.It Pa /etc/firmware/rtwn-rtl8188e 901e1b982aSkevlo.It Pa /etc/firmware/rtwn-rtl8192cU 911e1b982aSkevlo.It Pa /etc/firmware/rtwn-rtl8192cU_B 921e1b982aSkevlo.It Pa /etc/firmware/rtwn-rtl8723 931e1b982aSkevlo.It Pa /etc/firmware/rtwn-rtl8723_B 9475881c88Sstsp.El 9575881c88Sstsp.Sh EXAMPLES 9675881c88SstspThe following example scans for available networks: 9775881c88Sstsp.Pp 9875881c88Sstsp.Dl # ifconfig rtwn0 scan 9975881c88Sstsp.Pp 10075881c88SstspThe following 10175881c88Sstsp.Xr hostname.if 5 10275881c88Sstspexample configures rtwn0 to join network 10375881c88Sstsp.Dq mynwid , 10475881c88Sstspusing WPA key 10575881c88Sstsp.Dq mywpakey , 10675881c88Sstspobtaining an IP address using DHCP: 10775881c88Sstsp.Bd -literal -offset indent 108*d09093c1Sknjoin mynwid wpakey mywpakey 109b6ef1ff8Skninet autoconf 11075881c88Sstsp.Ed 11175881c88Sstsp.Sh DIAGNOSTICS 11275881c88Sstsp.Bl -diag 11375881c88Sstsp.It "rtwn0: could not read firmware ..." 11475881c88SstspFor some reason, the driver was unable to read the microcode file from the 11575881c88Sstspfilesystem. 11675881c88SstspThe file might be missing or corrupted. 11775881c88Sstsp.It "rtwn0: device timeout" 11875881c88SstspA frame dispatched to the hardware for transmission did not complete in time. 11975881c88SstspThe driver will reset the hardware. 12075881c88SstspThis should not happen. 12175881c88Sstsp.El 12275881c88Sstsp.Sh SEE ALSO 12375881c88Sstsp.Xr arp 4 , 12475881c88Sstsp.Xr ifmedia 4 , 12575881c88Sstsp.Xr intro 4 , 12675881c88Sstsp.Xr netintro 4 , 12775881c88Sstsp.Xr pci 4 , 12875881c88Sstsp.Xr hostname.if 5 , 12975881c88Sstsp.Xr ifconfig 8 13075881c88Sstsp.Sh HISTORY 13175881c88SstspThe 13275881c88Sstsp.Nm 13375881c88Sstspdriver first appeared in 13475881c88Sstsp.Ox 5.8 . 13575881c88Sstsp.Sh AUTHORS 13675881c88SstspThe 13775881c88Sstsp.Nm 13875881c88Sstspdriver was written by 13975881c88Sstsp.An -nosplit 14075881c88Sstsp.An Stefan Sperling Aq Mt stsp@openbsd.org . 14175881c88SstspIt was based on the 14275881c88Sstsp.Xr urtwn 4 14375881c88Sstspdriver written by 14475881c88Sstsp.An Damien Bergamini Aq Mt damien.bergamini@free.fr . 14575881c88Sstsp.Sh CAVEATS 14675881c88SstspThe 14775881c88Sstsp.Nm 14875881c88Sstspdriver does not support any of the 802.11n capabilities offered by the 14975881c88Sstspadapters. 15075881c88SstspAdditional work is required in 15175881c88Sstsp.Xr ieee80211 9 15275881c88Sstspbefore those features can be supported. 153abf2c0f4Sjmc.Pp 154abf2c0f4SjmcThis driver does not support powersave mode. 155