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