xref: /netbsd-src/external/bsd/wpa/bin/wpa_supplicant/wpa_supplicant.8 (revision 7d62b00eb9ad855ffcd7da46b41e23feb5476fac)
1.\" $NetBSD: wpa_supplicant.8,v 1.10 2022/09/10 12:39:06 rillig Exp $
2.\"
3.\" Copyright (c) 2005 Sam Leffler <sam@errno.com>
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25.\" SUCH DAMAGE.
26.\"
27.\" Based on:
28.\" $FreeBSD: /repoman/r/ncvs/src/usr.sbin/wpa/wpa_supplicant/wpa_supplicant.8,v 1.2 2005/06/27 06:40:43 ru Exp $
29.\"
30.Dd June 19, 2019
31.Dt WPA_SUPPLICANT 8
32.Os
33.Sh NAME
34.Nm wpa_supplicant
35.Nd WPA/802.11i Supplicant for wireless network devices
36.Sh SYNOPSIS
37.Nm
38.Op Fl BdhKLqstvW
39.Op Fl b Ar br_ifname
40.Op Fl C Ar ctrl
41.Fl c Ar config-file
42.Op Fl D Ar driver
43.Op Fl e Ar entropy-file
44.Op Fl f Ar debug-file
45.Op Fl G Ar global-ctrl-group
46.Op Fl g Ar global-ctrl
47.Op Fl I Ar additional-config-file
48.Op Fl i Ar ifname
49.Op Fl O Ar override-ctrl
50.Op Fl o Ar override-driver
51.Op Fl P Ar pidfile
52.Op Fl p Ar parameters
53.Op Fl M Oo Fl i Ar ifname Oc Fl c Ar config-file ...
54.Op Fl N Fl i Ar ifname Fl c Ar config-file ...
55.Sh DESCRIPTION
56The
57.Nm
58utility
59is an implementation of the WPA Supplicant component,
60i.e., the part that runs in the client stations.
61It implements WPA key negotiation with a WPA Authenticator
62and EAP authentication with an Authentication Server.
63In addition,
64.Nm
65controls the roaming and IEEE 802.11
66authentication/association support
67.\" of the
68.\" .Xr wlan 4
69.\" module
70and can be used to configure static WEP keys
71based on identified networks.
72.Pp
73The
74.Nm
75utility
76is designed to be a
77.Dq daemon
78program that runs in the
79background and acts as the backend component controlling
80the wireless connection.
81It supports separate frontend programs such as the
82text-based
83.Xr wpa_cli 8
84program.
85.Pp
86The following arguments must be specified on the command line:
87.Bl -tag -width indent
88.It Fl i Ar ifname
89Use the specified wireless interface.
90.It Fl c Ar config-file
91Use the settings in the specified configuration file when managing
92the wireless interface.
93See
94.Xr wpa_supplicant.conf 5
95for a description of the configuration file syntax and contents.
96.Pp
97Changes to the configuration file can be reloaded by sending a
98.Dv SIGHUP
99signal to the
100.Nm
101process or with the
102.Xr wpa_cli 8
103utility, using
104.Dq Li "wpa_cli reconfigure" .
105.El
106.Sh OPTIONS
107The following options are available:
108.Bl -tag -width indent
109.It Fl B
110Detach from the controlling terminal and run as a daemon process
111in the background.
112.It Fl b Ar br_ifname
113Optional bridge interface name.
114.It Fl C Ar ctrl
115Control interface parameter.
116.It Fl D Ar driver
117Driver name (can be either bsd or wired)
118.It Fl d
119Enable debugging messages.
120If this option is supplied twice, more verbose messages are displayed.
121Messages are sent to stdout by default, even when daemonised.
122This can be changed with the
123.Fl f
124flag.
125.It Fl e Ar entropy-file
126Specifies a file to store entropy.
127.It Fl f Ar debug-file
128Specifies a file to send debug messages to when enabled with the
129.Fl d
130flag.
131.It Fl G Ar global-ctrl-group
132Global control interface group.
133.It Fl g Ar global-ctrl
134Global control interface.
135.It Fl h
136Show help text.
137.It Fl I Ar additional-config-file
138Additional configuration file.
139.It Fl K
140Include key information in debugging output.
141.It Fl L
142Display the license for this program on the terminal and exit.
143.It Fl M Oo Fl i Ar matchifname Oc Fl c Ar config-file ...
144Matches the interface name using
145.Xr fnmatch 3 ,
146or all interfaces if
147.Fl i
148is not specified.
149If multiple interfaces are matched then
150.Nm
151will manage them all with a single process.
152.It Fl N i Ar ifname Fl c Ar config-file ...
153Specify an additional interface and configuration file.
154If multiple interfaces are specified then
155.Nm
156will manage them all with a single process.
157.It Fl O Ar override-ctrl
158Override ctrl_interface parameter for new interface.
159.It Fl o Ar override-driver
160Override driver parameter for new interface.
161.It Fl P Ar pidfile
162File in which to save the process PID.
163.It Fl p Ar parameters
164Specify driver parameters.
165.It Fl q
166Decrease debugging verbosity (i.e., counteract the use of the
167.Fl d
168flag).
169.It Fl s
170Send log messages through
171.Xr syslog 3
172instead of to the terminal.
173.It Fl t
174Include timestamp in debug messages.
175.It Fl v
176Display version information on the terminal and exit.
177.It Fl W
178Wait for a control interface monitor before starting.
179.El
180.Sh SEE ALSO
181.Xr fnmatch 3 ,
182.Xr ath 4 ,
183.Xr ipw 4 ,
184.Xr iwi 4 ,
185.Xr iwn 4 ,
186.Xr ral 4 ,
187.Xr rum 4 ,
188.Xr wi 4 ,
189.Xr wpi 4 ,
190.Xr zyd 4 ,
191.Xr wpa_supplicant.conf 5 ,
192.Xr ifconfig 8 ,
193.Xr wpa_cli 8 ,
194.Xr wpa_passphrase 8
195.Sh HISTORY
196The
197.Nm
198utility first appeared in
199.Nx 4.0 .
200.Sh AUTHORS
201The
202.Nm
203utility was written by
204.An Jouni Malinen Aq Mt jkmaline@cc.hut.fi .
205This manual page is derived from the
206.Pa README
207file included in the
208.Nm
209distribution.
210