1.\" $OpenBSD: rsu.4,v 1.11 2013/02/14 07:40:42 jmc Exp $ 2.\" $FreeBSD$ 3.\" 4.\" Copyright (c) 2010 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 December 5, 2016 19.Dt RSU 4 20.Os 21.Sh NAME 22.Nm rsu 23.Nd Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n wireless network device 24.Sh SYNOPSIS 25To compile this driver into the kernel, 26place the following lines in your kernel configuration file: 27.Bd -ragged -offset indent 28.Cd "device ehci" 29.Cd "device uhci" 30.Cd "device ohci" 31.Cd "device usb" 32.Cd "device rsu" 33.Cd "device wlan" 34.Ed 35.Pp 36Alternatively, to load the driver as a module at boot time, 37place the following line in 38.Xr loader.conf 5 : 39.Bd -literal -offset indent 40if_rsu_load="YES" 41.Ed 42.Pp 43After you have read the license in 44.Pa /usr/share/doc/legal/realtek.LICENSE 45you will want to add the following lines to 46.Xr loader.conf 5 : 47.Bd -literal -offset indent 48legal.realtek.license_ack=1 49rsu-rtl8712fw_load="YES" 50.Ed 51.Sh DESCRIPTION 52The 53.Nm 54driver supports USB 2.0 wireless network devices based on Realtek 55RTL8188SU, RTL8191SU and RTL8192SU chipsets. 56.Pp 57The RTL8188SU is a highly integrated 802.11n adapter that combines 58a MAC, a 1T1R capable baseband and an RF in a single chip. 59It operates in the 2GHz spectrum only. 60.Pp 61The RTL8191SU is a highly integrated multiple-in, single-out (MISO) 62802.11n adapter that combines a MAC, a 1T2R capable baseband and an 63RF in a single chip. 64It operates in the 2GHz spectrum only. 65.Pp 66The RTL8192SU is a highly integrated multiple-in, multiple-out (MIMO) 67802.11n adapter that combines a MAC, a 2T2R capable baseband and an 68RF in a single chip. 69It operates in the 2GHz spectrum only. 70.Pp 71These are the modes the 72.Nm 73driver can operate in: 74.Bl -tag -width "IBSS-masterXX" 75.It BSS mode 76Also known as 77.Em infrastructure 78mode, this is used when associating with an access point, through 79which all traffic passes. 80This mode is the default. 81.El 82.Pp 83The 84.Nm 85driver can be configured to use 86Wired Equivalent Privacy (WEP) or 87Wi-Fi Protected Access (WPA-PSK and WPA2-PSK). 88WPA is the de facto encryption standard for wireless networks. 89It is strongly recommended that WEP 90not be used as the sole mechanism 91to secure wireless communication, 92due to serious weaknesses in it. 93.Pp 94The 95.Nm 96driver can be configured at runtime with 97.Xr ifconfig 8 . 98.Sh FILES 99The driver needs at least version 1.2 of the following firmware file, 100which is loaded when an interface is attached: 101.Pp 102.Bl -tag -width Ds -offset indent -compact 103.It Pa /boot/kernel/rsu-rtl8712fw.ko 104.El 105.Sh HARDWARE 106The 107.Nm 108driver provices support for Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n 109wireless network adapters, including: 110.Pp 111.Bl -tag -width Ds -offset indent -compact 112.It ASUS USB-N10 113.It Belkin F7D1101 v1 114.It D-Link DWA-131 A1 115.It EDUP EP-MS150N(W) 116.It Edimax EW-7622UMN 117.It Hercules HWGUn-54 118.It Hercules HWNUm-300 119.It Planex GW-USNano 120.It Sitecom WL-349 v1 121.It Sitecom WL-353 122.It Sweex LW154 123.It TRENDnet TEW-646UBH 124.It TRENDnet TEW-648UB 125.It TRENDnet TEW-649UB 126.El 127.Sh EXAMPLES 128Join an existing BSS network (i.e., connect to an access point): 129.Bd -literal -offset indent 130ifconfig wlan create wlandev rsu0 inet 192.168.0.20 \e 131 netmask 0xffffff00 132.Ed 133.Pp 134Join a specific BSS network with network name 135.Dq Li my_net : 136.Pp 137.Dl "ifconfig wlan create wlandev rsu0 ssid my_net up" 138.Pp 139Join a specific BSS network with 64-bit WEP encryption: 140.Bd -literal -offset indent 141ifconfig wlan create wlandev rsu0 ssid my_net \e 142 wepmode on wepkey 0x1234567890 weptxkey 1 up 143.Ed 144.Sh DIAGNOSTICS 145.Bl -diag 146.It "%s: failed load firmware of file rsu-rtl8712fw" 147For some reason, the driver was unable to read the microcode file from the 148filesystem. 149The file might be missing or corrupted. 150.It "device timeout" 151A frame dispatched to the hardware for transmission did not complete in time. 152The driver will reset the hardware. 153This should not happen. 154.El 155.Sh SEE ALSO 156.Xr intro 1 , 157.Xr netintro 4 , 158.Xr rsufw 4 , 159.Xr usb 4 , 160.Xr wlan 4 , 161.Xr arp 8 , 162.Xr hostapd 8 , 163.Xr ifconfig 8 , 164.Xr wpa_supplicant 8 165.Sh HISTORY 166The 167.Nm 168driver first appeared in 169.Ox 4.9 and 170.Fx 10.0 . 171.Sh AUTHORS 172.An -nosplit 173The 174.Nm 175driver was written by 176.An Damien Bergamini Aq Mt damien@openbsd.org 177and ported by 178.An Rui Paulo Aq Mt rpaulo@freebsd.org . 179The 802.11n support was added by 180.An Adrian Chadd Aq Mt adrian@freebsd.org . 181.Sh CAVEATS 182The 183.Nm 184driver currently does not support 802.11n transmit aggregation, 185either A-MSDU or A-MPDU. 186