131d98677SRui Paulo.\" $OpenBSD: rsu.4,v 1.11 2013/02/14 07:40:42 jmc Exp $ 231d98677SRui Paulo.\" $FreeBSD$ 331d98677SRui Paulo.\" 431d98677SRui Paulo.\" Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> 531d98677SRui Paulo.\" 631d98677SRui Paulo.\" Permission to use, copy, modify, and distribute this software for any 731d98677SRui Paulo.\" purpose with or without fee is hereby granted, provided that the above 831d98677SRui Paulo.\" copyright notice and this permission notice appear in all copies. 931d98677SRui Paulo.\" 1031d98677SRui Paulo.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 1131d98677SRui Paulo.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1231d98677SRui Paulo.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1331d98677SRui Paulo.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1431d98677SRui Paulo.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1531d98677SRui Paulo.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1631d98677SRui Paulo.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1731d98677SRui Paulo.\" 18*2570e7c3SKyle Evans.Dd April 4, 2018 1931d98677SRui Paulo.Dt RSU 4 2031d98677SRui Paulo.Os 2131d98677SRui Paulo.Sh NAME 2231d98677SRui Paulo.Nm rsu 2331d98677SRui Paulo.Nd Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n wireless network device 2431d98677SRui Paulo.Sh SYNOPSIS 2531d98677SRui PauloTo compile this driver into the kernel, 2631d98677SRui Pauloplace the following lines in your kernel configuration file: 2731d98677SRui Paulo.Bd -ragged -offset indent 2831d98677SRui Paulo.Cd "device ehci" 2931d98677SRui Paulo.Cd "device uhci" 3031d98677SRui Paulo.Cd "device ohci" 3131d98677SRui Paulo.Cd "device usb" 3231d98677SRui Paulo.Cd "device rsu" 33*2570e7c3SKyle Evans.Cd "device rsufw" 3431d98677SRui Paulo.Cd "device wlan" 3531d98677SRui Paulo.Ed 3631d98677SRui Paulo.Pp 3731d98677SRui PauloAlternatively, to load the driver as a module at boot time, 38*2570e7c3SKyle Evansplace the following lines in 3931d98677SRui Paulo.Xr loader.conf 5 : 4031d98677SRui Paulo.Bd -literal -offset indent 412a6b4327SJohn-Mark Gurneyif_rsu_load="YES" 4231d98677SRui Paulorsu-rtl8712fw_load="YES" 4331d98677SRui Paulo.Ed 4431d98677SRui Paulo.Sh DESCRIPTION 4531d98677SRui PauloThe 4631d98677SRui Paulo.Nm 4731d98677SRui Paulodriver supports USB 2.0 wireless network devices based on Realtek 4831d98677SRui PauloRTL8188SU, RTL8191SU and RTL8192SU chipsets. 4931d98677SRui Paulo.Pp 5031d98677SRui PauloThe RTL8188SU is a highly integrated 802.11n adapter that combines 5131d98677SRui Pauloa MAC, a 1T1R capable baseband and an RF in a single chip. 5231d98677SRui PauloIt operates in the 2GHz spectrum only. 5331d98677SRui Paulo.Pp 5431d98677SRui PauloThe RTL8191SU is a highly integrated multiple-in, single-out (MISO) 5531d98677SRui Paulo802.11n adapter that combines a MAC, a 1T2R capable baseband and an 5631d98677SRui PauloRF in a single chip. 5731d98677SRui PauloIt operates in the 2GHz spectrum only. 5831d98677SRui Paulo.Pp 5931d98677SRui PauloThe RTL8192SU is a highly integrated multiple-in, multiple-out (MIMO) 6031d98677SRui Paulo802.11n adapter that combines a MAC, a 2T2R capable baseband and an 6131d98677SRui PauloRF in a single chip. 6231d98677SRui PauloIt operates in the 2GHz spectrum only. 6331d98677SRui Paulo.Pp 6431d98677SRui PauloThese are the modes the 6531d98677SRui Paulo.Nm 6631d98677SRui Paulodriver can operate in: 6731d98677SRui Paulo.Bl -tag -width "IBSS-masterXX" 6831d98677SRui Paulo.It BSS mode 6931d98677SRui PauloAlso known as 7031d98677SRui Paulo.Em infrastructure 7131d98677SRui Paulomode, this is used when associating with an access point, through 7231d98677SRui Paulowhich all traffic passes. 7331d98677SRui PauloThis mode is the default. 744b8f6069SAndriy Voskoboinyk.It monitor mode 754b8f6069SAndriy VoskoboinykIn this mode the driver is able to receive packets without 764b8f6069SAndriy Voskoboinykassociating with an access point. 774b8f6069SAndriy VoskoboinykThis disables the internal receive filter and enables the card to 784b8f6069SAndriy Voskoboinykcapture packets from networks which it wouldn't normally have access to, 794b8f6069SAndriy Voskoboinykor to scan for access points. 8031d98677SRui Paulo.El 8131d98677SRui Paulo.Pp 8231d98677SRui PauloThe 8331d98677SRui Paulo.Nm 8431d98677SRui Paulodriver can be configured to use 8531d98677SRui PauloWired Equivalent Privacy (WEP) or 8631d98677SRui PauloWi-Fi Protected Access (WPA-PSK and WPA2-PSK). 8731d98677SRui PauloWPA is the de facto encryption standard for wireless networks. 8831d98677SRui PauloIt is strongly recommended that WEP 8931d98677SRui Paulonot be used as the sole mechanism 9031d98677SRui Pauloto secure wireless communication, 9131d98677SRui Paulodue to serious weaknesses in it. 9231d98677SRui Paulo.Pp 9331d98677SRui PauloThe 9431d98677SRui Paulo.Nm 9531d98677SRui Paulodriver can be configured at runtime with 96be0d76ebSChristian Brueffer.Xr ifconfig 8 . 9731d98677SRui Paulo.Sh FILES 98*2570e7c3SKyle Evans.Bl -tag -width ".Pa /usr/share/doc/legal/realtek.LICENSE" -compact 99*2570e7c3SKyle Evans.It Pa /usr/share/doc/legal/realtek.LICENSE 100*2570e7c3SKyle Evans.Nm 101*2570e7c3SKyle Evansfirmware license 102*2570e7c3SKyle Evans.El 103*2570e7c3SKyle Evans.Pp 10431d98677SRui PauloThe driver needs at least version 1.2 of the following firmware file, 10531d98677SRui Paulowhich is loaded when an interface is attached: 10631d98677SRui Paulo.Pp 10731d98677SRui Paulo.Bl -tag -width Ds -offset indent -compact 108be0d76ebSChristian Brueffer.It Pa /boot/kernel/rsu-rtl8712fw.ko 10931d98677SRui Paulo.El 11031d98677SRui Paulo.Sh HARDWARE 111be0d76ebSChristian BruefferThe 112be0d76ebSChristian Brueffer.Nm 113be0d76ebSChristian Bruefferdriver provices support for Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n 114be0d76ebSChristian Bruefferwireless network adapters, including: 11531d98677SRui Paulo.Pp 11631d98677SRui Paulo.Bl -tag -width Ds -offset indent -compact 11731d98677SRui Paulo.It ASUS USB-N10 11831d98677SRui Paulo.It Belkin F7D1101 v1 11931d98677SRui Paulo.It D-Link DWA-131 A1 12031d98677SRui Paulo.It EDUP EP-MS150N(W) 1211c12e0afSKevin Lo.It Edimax EW-7622UMN 12231d98677SRui Paulo.It Hercules HWGUn-54 12331d98677SRui Paulo.It Hercules HWNUm-300 12431d98677SRui Paulo.It Planex GW-USNano 12531d98677SRui Paulo.It Sitecom WL-349 v1 12631d98677SRui Paulo.It Sitecom WL-353 12731d98677SRui Paulo.It Sweex LW154 128fa20eb98SKevin Lo.It TRENDnet TEW-646UBH 12931d98677SRui Paulo.It TRENDnet TEW-648UB 13031d98677SRui Paulo.It TRENDnet TEW-649UB 131cfde4db2SJoel Dahl.El 13231d98677SRui Paulo.Sh EXAMPLES 13331d98677SRui PauloJoin an existing BSS network (i.e., connect to an access point): 13431d98677SRui Paulo.Bd -literal -offset indent 13531d98677SRui Pauloifconfig wlan create wlandev rsu0 inet 192.168.0.20 \e 13631d98677SRui Paulo netmask 0xffffff00 13731d98677SRui Paulo.Ed 13831d98677SRui Paulo.Pp 13931d98677SRui PauloJoin a specific BSS network with network name 14031d98677SRui Paulo.Dq Li my_net : 14131d98677SRui Paulo.Pp 14231d98677SRui Paulo.Dl "ifconfig wlan create wlandev rsu0 ssid my_net up" 14331d98677SRui Paulo.Pp 14431d98677SRui PauloJoin a specific BSS network with 64-bit WEP encryption: 14531d98677SRui Paulo.Bd -literal -offset indent 14631d98677SRui Pauloifconfig wlan create wlandev rsu0 ssid my_net \e 14731d98677SRui Paulo wepmode on wepkey 0x1234567890 weptxkey 1 up 14831d98677SRui Paulo.Ed 14931d98677SRui Paulo.Sh DIAGNOSTICS 15031d98677SRui Paulo.Bl -diag 15131d98677SRui Paulo.It "%s: failed load firmware of file rsu-rtl8712fw" 15231d98677SRui PauloFor some reason, the driver was unable to read the microcode file from the 15331d98677SRui Paulofilesystem. 15431d98677SRui PauloThe file might be missing or corrupted. 15531d98677SRui Paulo.It "device timeout" 15631d98677SRui PauloA frame dispatched to the hardware for transmission did not complete in time. 15731d98677SRui PauloThe driver will reset the hardware. 15831d98677SRui PauloThis should not happen. 15931d98677SRui Paulo.El 16031d98677SRui Paulo.Sh SEE ALSO 161cfde4db2SJoel Dahl.Xr intro 1 , 162cfde4db2SJoel Dahl.Xr netintro 4 , 163cfde4db2SJoel Dahl.Xr rsufw 4 , 164923544aaSBaptiste Daroussin.Xr usb 4 , 16531d98677SRui Paulo.Xr wlan 4 , 166cfde4db2SJoel Dahl.Xr arp 8 , 167be0d76ebSChristian Brueffer.Xr hostapd 8 , 168be0d76ebSChristian Brueffer.Xr ifconfig 8 , 169be0d76ebSChristian Brueffer.Xr wpa_supplicant 8 17031d98677SRui Paulo.Sh HISTORY 17131d98677SRui PauloThe 17231d98677SRui Paulo.Nm 17331d98677SRui Paulodriver first appeared in 17431d98677SRui Paulo.Ox 4.9 and 17531d98677SRui Paulo.Fx 10.0 . 17631d98677SRui Paulo.Sh AUTHORS 17731d98677SRui Paulo.An -nosplit 17831d98677SRui PauloThe 17931d98677SRui Paulo.Nm 18031d98677SRui Paulodriver was written by 1816c899950SBaptiste Daroussin.An Damien Bergamini Aq Mt damien@openbsd.org 18231d98677SRui Pauloand ported by 1836c899950SBaptiste Daroussin.An Rui Paulo Aq Mt rpaulo@freebsd.org . 18480ad3377SAdrian ChaddThe 802.11n support was added by 18580ad3377SAdrian Chadd.An Adrian Chadd Aq Mt adrian@freebsd.org . 18631d98677SRui Paulo.Sh CAVEATS 18731d98677SRui PauloThe 18831d98677SRui Paulo.Nm 18980ad3377SAdrian Chadddriver currently does not support 802.11n transmit aggregation, 19080ad3377SAdrian Chaddeither A-MSDU or A-MPDU. 1914b8f6069SAndriy Voskoboinyk.Pp 1924b8f6069SAndriy VoskoboinykThe 1934b8f6069SAndriy Voskoboinyk.Nm 1944b8f6069SAndriy Voskoboinykdriver does not capture management frames in non-monitor modes; 1954b8f6069SAndriy Voskoboinykwithout this limitation some firmware functions (e.g., 'join bss') 1964b8f6069SAndriy Voskoboinykwill not work properly. 197