xref: /freebsd/share/man/man4/rsu.4 (revision 9f3e7b75976b40107160d1d1676051792b45b0bc)
193b30f1bSAlexander Ziaee.\"-
293b30f1bSAlexander Ziaee.\" SPDX-License-Identifier: ISC
393b30f1bSAlexander Ziaee.\"
431d98677SRui Paulo.\" $OpenBSD: rsu.4,v 1.11 2013/02/14 07:40:42 jmc Exp $
531d98677SRui Paulo.\"
631d98677SRui Paulo.\" Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
731d98677SRui Paulo.\"
831d98677SRui Paulo.\" Permission to use, copy, modify, and distribute this software for any
931d98677SRui Paulo.\" purpose with or without fee is hereby granted, provided that the above
1031d98677SRui Paulo.\" copyright notice and this permission notice appear in all copies.
1131d98677SRui Paulo.\"
1231d98677SRui Paulo.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1331d98677SRui Paulo.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1431d98677SRui Paulo.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1531d98677SRui Paulo.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1631d98677SRui Paulo.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1731d98677SRui Paulo.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1831d98677SRui Paulo.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1931d98677SRui Paulo.\"
20*9f3e7b75SNia Alarie.Dd April 1, 2025
2131d98677SRui Paulo.Dt RSU 4
2231d98677SRui Paulo.Os
2331d98677SRui Paulo.Sh NAME
2431d98677SRui Paulo.Nm rsu
2593b30f1bSAlexander Ziaee.Nd Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n wireless network driver
2631d98677SRui Paulo.Sh SYNOPSIS
2731d98677SRui PauloTo compile this driver into the kernel,
2831d98677SRui Pauloplace the following lines in your kernel configuration file:
2931d98677SRui Paulo.Bd -ragged -offset indent
3031d98677SRui Paulo.Cd "device ehci"
3131d98677SRui Paulo.Cd "device uhci"
3231d98677SRui Paulo.Cd "device ohci"
3331d98677SRui Paulo.Cd "device usb"
3431d98677SRui Paulo.Cd "device rsu"
352570e7c3SKyle Evans.Cd "device rsufw"
3631d98677SRui Paulo.Cd "device wlan"
3731d98677SRui Paulo.Ed
3831d98677SRui Paulo.Pp
3931d98677SRui PauloAlternatively, to load the driver as a module at boot time,
402570e7c3SKyle Evansplace the following lines in
4131d98677SRui Paulo.Xr loader.conf 5 :
4231d98677SRui Paulo.Bd -literal -offset indent
432a6b4327SJohn-Mark Gurneyif_rsu_load="YES"
4431d98677SRui Paulorsu-rtl8712fw_load="YES"
4531d98677SRui Paulo.Ed
4631d98677SRui Paulo.Sh DESCRIPTION
4731d98677SRui PauloThe
4831d98677SRui Paulo.Nm
4931d98677SRui Paulodriver supports USB 2.0 wireless network devices based on Realtek
5031d98677SRui PauloRTL8188SU, RTL8191SU and RTL8192SU chipsets.
5131d98677SRui Paulo.Pp
5231d98677SRui PauloThe RTL8188SU is a highly integrated 802.11n adapter that combines
5331d98677SRui Pauloa MAC, a 1T1R capable baseband and an RF in a single chip.
5431d98677SRui PauloIt operates in the 2GHz spectrum only.
5531d98677SRui Paulo.Pp
5631d98677SRui PauloThe RTL8191SU is a highly integrated multiple-in, single-out (MISO)
5731d98677SRui Paulo802.11n adapter that combines a MAC, a 1T2R capable baseband and an
5831d98677SRui PauloRF in a single chip.
5931d98677SRui PauloIt operates in the 2GHz spectrum only.
6031d98677SRui Paulo.Pp
6131d98677SRui PauloThe RTL8192SU is a highly integrated multiple-in, multiple-out (MIMO)
6231d98677SRui Paulo802.11n adapter that combines a MAC, a 2T2R capable baseband and an
6331d98677SRui PauloRF in a single chip.
6431d98677SRui PauloIt operates in the 2GHz spectrum only.
6531d98677SRui Paulo.Pp
6631d98677SRui PauloThese are the modes the
6731d98677SRui Paulo.Nm
6831d98677SRui Paulodriver can operate in:
6931d98677SRui Paulo.Bl -tag -width "IBSS-masterXX"
7031d98677SRui Paulo.It BSS mode
7131d98677SRui PauloAlso known as
7231d98677SRui Paulo.Em infrastructure
7331d98677SRui Paulomode, this is used when associating with an access point, through
7431d98677SRui Paulowhich all traffic passes.
7531d98677SRui PauloThis mode is the default.
764b8f6069SAndriy Voskoboinyk.It monitor mode
774b8f6069SAndriy VoskoboinykIn this mode the driver is able to receive packets without
784b8f6069SAndriy Voskoboinykassociating with an access point.
794b8f6069SAndriy VoskoboinykThis disables the internal receive filter and enables the card to
804b8f6069SAndriy Voskoboinykcapture packets from networks which it wouldn't normally have access to,
814b8f6069SAndriy Voskoboinykor to scan for access points.
8231d98677SRui Paulo.El
8331d98677SRui Paulo.Pp
8431d98677SRui PauloThe
8531d98677SRui Paulo.Nm
8631d98677SRui Paulodriver can be configured to use
8731d98677SRui PauloWired Equivalent Privacy (WEP) or
8831d98677SRui PauloWi-Fi Protected Access (WPA-PSK and WPA2-PSK).
8931d98677SRui PauloWPA is the de facto encryption standard for wireless networks.
9031d98677SRui PauloIt is strongly recommended that WEP
9131d98677SRui Paulonot be used as the sole mechanism
9231d98677SRui Pauloto secure wireless communication,
9331d98677SRui Paulodue to serious weaknesses in it.
9431d98677SRui Paulo.Pp
9531d98677SRui PauloThe
9631d98677SRui Paulo.Nm
9731d98677SRui Paulodriver can be configured at runtime with
98be0d76ebSChristian Brueffer.Xr ifconfig 8 .
9993b30f1bSAlexander Ziaee.Sh HARDWARE
10093b30f1bSAlexander ZiaeeThe
10193b30f1bSAlexander Ziaee.Nm
10293b30f1bSAlexander Ziaeedriver provides support for Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n
10393b30f1bSAlexander Ziaeewireless network adapters, including:
10493b30f1bSAlexander Ziaee.Pp
10593b30f1bSAlexander Ziaee.Bl -bullet -offset indent -compact
10693b30f1bSAlexander Ziaee.It
10793b30f1bSAlexander ZiaeeASUS USB-N10
10893b30f1bSAlexander Ziaee.It
10993b30f1bSAlexander ZiaeeASUS WL-167G V3
11093b30f1bSAlexander Ziaee.It
11193b30f1bSAlexander ZiaeeBelkin F7D1101 v1
11293b30f1bSAlexander Ziaee.It
11393b30f1bSAlexander ZiaeeD-Link DWA-131 A1
11493b30f1bSAlexander Ziaee.It
11593b30f1bSAlexander ZiaeeEDUP EP-MS150N(W)
11693b30f1bSAlexander Ziaee.It
11793b30f1bSAlexander ZiaeeEdimax EW-7622UMN
11893b30f1bSAlexander Ziaee.It
11993b30f1bSAlexander ZiaeeHercules HWGUn-54
12093b30f1bSAlexander Ziaee.It
12193b30f1bSAlexander ZiaeeHercules HWNUm-300
12293b30f1bSAlexander Ziaee.It
12393b30f1bSAlexander ZiaeePlanex GW-USNano
12493b30f1bSAlexander Ziaee.It
12593b30f1bSAlexander ZiaeeSitecom WL-349 v1
12693b30f1bSAlexander Ziaee.It
12793b30f1bSAlexander ZiaeeSitecom WL-353
12893b30f1bSAlexander Ziaee.It
129*9f3e7b75SNia AlarieSitecom WLA-1100 v1001
130*9f3e7b75SNia Alarie.It
13193b30f1bSAlexander ZiaeeSweex LW154
13293b30f1bSAlexander Ziaee.It
13393b30f1bSAlexander ZiaeeTRENDnet TEW-646UBH
13493b30f1bSAlexander Ziaee.It
13593b30f1bSAlexander ZiaeeTRENDnet TEW-648UB
13693b30f1bSAlexander Ziaee.It
13793b30f1bSAlexander ZiaeeTRENDnet TEW-649UB
13893b30f1bSAlexander Ziaee.El
13931d98677SRui Paulo.Sh FILES
14093b30f1bSAlexander Ziaee.Bl -tag -width "/usr/share/doc/legal/realtek.LICENSE" -compact
1412570e7c3SKyle Evans.It Pa /usr/share/doc/legal/realtek.LICENSE
1422570e7c3SKyle Evans.Nm
1432570e7c3SKyle Evansfirmware license
1442570e7c3SKyle Evans.El
1452570e7c3SKyle Evans.Pp
14631d98677SRui PauloThe driver needs at least version 1.2 of the following firmware file,
14731d98677SRui Paulowhich is loaded when an interface is attached:
14831d98677SRui Paulo.Pp
14931d98677SRui Paulo.Bl -tag -width Ds -offset indent -compact
150be0d76ebSChristian Brueffer.It Pa /boot/kernel/rsu-rtl8712fw.ko
15131d98677SRui Paulo.El
15231d98677SRui Paulo.Sh EXAMPLES
15331d98677SRui PauloJoin an existing BSS network (i.e., connect to an access point):
15493b30f1bSAlexander Ziaee.Pp
15593b30f1bSAlexander Ziaee.Dl ifconfig wlan create wlandev rsu0 inet 192.0.2.20/24
15631d98677SRui Paulo.Pp
15731d98677SRui PauloJoin a specific BSS network with network name
15893b30f1bSAlexander Ziaee.Ar my_net :
15931d98677SRui Paulo.Pp
16093b30f1bSAlexander Ziaee.Dl ifconfig wlan create wlandev rsu0 ssid my_net up
16131d98677SRui Paulo.Pp
16231d98677SRui PauloJoin a specific BSS network with 64-bit WEP encryption:
16331d98677SRui Paulo.Bd -literal -offset indent
16431d98677SRui Pauloifconfig wlan create wlandev rsu0 ssid my_net \e
16531d98677SRui Paulo    wepmode on wepkey 0x1234567890 weptxkey 1 up
16631d98677SRui Paulo.Ed
16731d98677SRui Paulo.Sh DIAGNOSTICS
16831d98677SRui Paulo.Bl -diag
16931d98677SRui Paulo.It "%s: failed load firmware of file rsu-rtl8712fw"
17031d98677SRui PauloFor some reason, the driver was unable to read the microcode file from the
17131d98677SRui Paulofilesystem.
17231d98677SRui PauloThe file might be missing or corrupted.
17331d98677SRui Paulo.It "device timeout"
17431d98677SRui PauloA frame dispatched to the hardware for transmission did not complete in time.
17531d98677SRui PauloThe driver will reset the hardware.
17631d98677SRui PauloThis should not happen.
17731d98677SRui Paulo.El
17831d98677SRui Paulo.Sh SEE ALSO
179cfde4db2SJoel Dahl.Xr intro 1 ,
180cfde4db2SJoel Dahl.Xr netintro 4 ,
181cfde4db2SJoel Dahl.Xr rsufw 4 ,
182923544aaSBaptiste Daroussin.Xr usb 4 ,
18331d98677SRui Paulo.Xr wlan 4 ,
18493b30f1bSAlexander Ziaee.Xr networking 7 ,
185cfde4db2SJoel Dahl.Xr arp 8 ,
186be0d76ebSChristian Brueffer.Xr hostapd 8 ,
187be0d76ebSChristian Brueffer.Xr ifconfig 8 ,
188be0d76ebSChristian Brueffer.Xr wpa_supplicant 8
18931d98677SRui Paulo.Sh HISTORY
19031d98677SRui PauloThe
19131d98677SRui Paulo.Nm
19231d98677SRui Paulodriver first appeared in
19331d98677SRui Paulo.Ox 4.9 and
19431d98677SRui Paulo.Fx 10.0 .
19531d98677SRui Paulo.Sh AUTHORS
19631d98677SRui Paulo.An -nosplit
19731d98677SRui PauloThe
19831d98677SRui Paulo.Nm
19931d98677SRui Paulodriver was written by
2006c899950SBaptiste Daroussin.An Damien Bergamini Aq Mt damien@openbsd.org
20131d98677SRui Pauloand ported by
2026c899950SBaptiste Daroussin.An Rui Paulo Aq Mt rpaulo@freebsd.org .
20380ad3377SAdrian ChaddThe 802.11n support was added by
20480ad3377SAdrian Chadd.An Adrian Chadd Aq Mt adrian@freebsd.org .
20531d98677SRui Paulo.Sh CAVEATS
20631d98677SRui PauloThe
20731d98677SRui Paulo.Nm
20880ad3377SAdrian Chadddriver currently does not support 802.11n transmit aggregation,
20980ad3377SAdrian Chaddeither A-MSDU or A-MPDU.
2104b8f6069SAndriy Voskoboinyk.Pp
2114b8f6069SAndriy VoskoboinykThe
2124b8f6069SAndriy Voskoboinyk.Nm
2134b8f6069SAndriy Voskoboinykdriver does not capture management frames in non-monitor modes;
2144b8f6069SAndriy Voskoboinykwithout this limitation some firmware functions (e.g., 'join bss')
2154b8f6069SAndriy Voskoboinykwill not work properly.
216