]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - contrib/wpa_supplicant/doc/docbook/wpa_supplicant.sgml
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / contrib / wpa_supplicant / doc / docbook / wpa_supplicant.sgml
1 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2
3 <refentry>
4   <refmeta>
5     <refentrytitle>wpa_supplicant</refentrytitle>
6     <manvolnum>8</manvolnum>
7   </refmeta>
8   <refnamediv>
9     <refname>wpa_supplicant</refname>
10     <refpurpose>Wi-Fi Protected Access client and IEEE 802.1X supplicant</refpurpose>
11   </refnamediv>
12   <refsynopsisdiv>
13     <cmdsynopsis>
14       <command>wpa_supplicant</command>
15       <arg>-BddfhKLqqtuvwW</arg>
16       <arg>-i<replaceable>ifname</replaceable></arg>
17       <arg>-c<replaceable>config file</replaceable></arg>
18       <arg>-D<replaceable>driver</replaceable></arg>
19       <arg>-P<replaceable>PID_file</replaceable></arg>
20       <arg>-f<replaceable>output file</replaceable></arg>
21     </cmdsynopsis>
22   </refsynopsisdiv>
23   <refsect1>
24     <title>Overview</title>
25
26     <para>
27     Wireless networks do not require physical access to the network equipment
28     in the same way as wired networks. This makes it easier for unauthorized
29     users to passively monitor a network and capture all transmitted frames.
30     In addition, unauthorized use of the network is much easier. In many cases,
31     this can happen even without user's explicit knowledge since the wireless
32     LAN adapter may have been configured to automatically join any available
33     network.
34     </para>
35
36     <para>
37     Link-layer encryption can be used to provide a layer of security for
38     wireless networks. The original wireless LAN standard, IEEE 802.11,
39     included a simple encryption mechanism, WEP. However, that proved to
40     be flawed in many areas and network protected with WEP cannot be consider
41     secure. IEEE 802.1X authentication and frequently changed dynamic WEP keys
42     can be used to improve the network security, but even that has inherited
43     security issues due to the use of WEP for encryption. Wi-Fi Protected
44     Access and IEEE 802.11i amendment to the wireless LAN standard introduce
45     a much improvement mechanism for securing wireless networks. IEEE 802.11i
46     enabled networks that are using CCMP (encryption mechanism based on strong
47     cryptographic algorithm AES) can finally be called secure used for
48     applications which require efficient protection against unauthorized
49     access.
50     </para>
51
52     <para><command>wpa_supplicant</command> is an implementation of
53     the WPA Supplicant component, i.e., the part that runs in the
54     client stations. It implements WPA key negotiation with a WPA
55     Authenticator and EAP authentication with Authentication
56     Server. In addition, it controls the roaming and IEEE 802.11
57     authentication/association of the wireless LAN driver.</para>
58
59     <para><command>wpa_supplicant</command> is designed to be a
60     "daemon" program that runs in the background and acts as the
61     backend component controlling the wireless
62     connection. <command>wpa_supplicant</command> supports separate
63     frontend programs and an example text-based frontend,
64     <command>wpa_cli</command>, is included with
65     wpa_supplicant.</para>
66
67     <para>Before wpa_supplicant can do its work, the network interface
68     must be available.  That means that the physical device must be
69     present and enabled, and the driver for the device must have be
70     loaded.  Note, however, that the '-w' option of the wpa_supplicant
71     daemon instructs the daemon to continue running and to wait for
72     the interface to become available.  Without the '-w' option, the
73     daemon will exit immediately if the device is not already
74     available.</para>
75
76     <para>After <command>wpa_supplicant</command> has configured the
77     network device, higher level configuration such as DHCP may
78     proceed.  There are a variety of ways to integrate wpa_supplicant
79     into a machine's networking scripts, a few of which are described
80     in sections below.</para>
81
82     <para>The following steps are used when associating with an AP
83     using WPA:</para>
84
85     <itemizedlist>
86       <listitem>
87         <para><command>wpa_supplicant</command> requests the kernel
88         driver to scan neighboring BSSes</para>
89       </listitem>
90
91       <listitem>
92         <para><command>wpa_supplicant</command> selects a BSS based on
93         its configuration</para>
94       </listitem>
95
96       <listitem>
97         <para><command>wpa_supplicant</command> requests the kernel
98         driver to associate with the chosen BSS</para>
99       </listitem>
100
101       <listitem>
102         <para>If WPA-EAP: integrated IEEE 802.1X Supplicant or
103         external Xsupplicant completes EAP authentication with the
104         authentication server (proxied by the Authenticator in the
105         AP)</para>
106       </listitem>
107
108       <listitem>
109         <para>If WPA-EAP: master key is received from the IEEE 802.1X
110         Supplicant</para>
111       </listitem>
112
113       <listitem>
114         <para>If WPA-PSK: <command>wpa_supplicant</command> uses PSK
115         as the master session key</para>
116       </listitem>
117
118       <listitem>
119         <para><command>wpa_supplicant</command> completes WPA 4-Way
120         Handshake and Group Key Handshake with the Authenticator
121         (AP)</para>
122       </listitem>
123
124       <listitem>
125         <para><command>wpa_supplicant</command> configures encryption
126         keys for unicast and broadcast</para>
127       </listitem>
128
129       <listitem>
130         <para>normal data packets can be transmitted and received</para>
131       </listitem>
132     </itemizedlist>
133   </refsect1>
134
135   <refsect1>
136     <title>Supported Features</title>
137     <para>Supported WPA/IEEE 802.11i features:</para>
138     <itemizedlist>
139       <listitem>
140         <para>WPA-PSK ("WPA-Personal")</para>
141       </listitem>
142
143       <listitem>
144         <para>WPA with EAP (e.g., with RADIUS authentication server)
145        ("WPA-Enterprise") Following authentication methods are
146        supported with an integrate IEEE 802.1X Supplicant:</para>
147
148         <itemizedlist>
149           <listitem>
150             <para>EAP-TLS</para>
151           </listitem>
152         </itemizedlist>
153
154         <itemizedlist>
155           <listitem>
156             <para>EAP-PEAP/MSCHAPv2 (both PEAPv0 and PEAPv1)</para>
157           </listitem>
158
159
160           <listitem>
161             <para>EAP-PEAP/TLS (both PEAPv0 and PEAPv1)</para>
162           </listitem>
163
164           <listitem>
165             <para>EAP-PEAP/GTC (both PEAPv0 and PEAPv1)</para>
166           </listitem>
167
168           <listitem>
169             <para>EAP-PEAP/OTP (both PEAPv0 and PEAPv1)</para>
170           </listitem>
171
172           <listitem>
173             <para>EAP-PEAP/MD5-Challenge (both PEAPv0 and PEAPv1)</para>
174           </listitem>
175
176           <listitem>
177             <para>EAP-TTLS/EAP-MD5-Challenge</para>
178           </listitem>
179
180           <listitem>
181             <para>EAP-TTLS/EAP-GTC</para>
182           </listitem>
183
184           <listitem><para>EAP-TTLS/EAP-OTP</para></listitem>
185
186           <listitem><para>EAP-TTLS/EAP-MSCHAPv2</para></listitem>
187
188           <listitem><para>EAP-TTLS/EAP-TLS</para></listitem>
189
190           <listitem><para>EAP-TTLS/MSCHAPv2</para></listitem>
191
192           <listitem><para>EAP-TTLS/MSCHAP</para></listitem>
193
194           <listitem><para>EAP-TTLS/PAP</para></listitem>
195
196           <listitem><para>EAP-TTLS/CHAP</para></listitem>
197
198           <listitem><para>EAP-SIM</para></listitem>
199
200           <listitem><para>EAP-AKA</para></listitem>
201
202           <listitem><para>EAP-PSK</para></listitem>
203
204           <listitem><para>EAP-PAX</para></listitem>
205
206           <listitem><para>LEAP (note: requires special support from
207           the driver for IEEE 802.11 authentication)</para></listitem>
208
209           <listitem><para>(following methods are supported, but since
210           they do not generate keying material, they cannot be used
211           with WPA or IEEE 802.1X WEP keying)</para></listitem>
212
213           <listitem><para>EAP-MD5-Challenge </para></listitem>
214
215           <listitem><para>EAP-MSCHAPv2</para></listitem>
216
217           <listitem><para>EAP-GTC</para></listitem>
218
219           <listitem><para>EAP-OTP</para></listitem>
220         </itemizedlist>
221       </listitem>
222
223       <listitem>
224         <para>key management for CCMP, TKIP, WEP104, WEP40</para>
225       </listitem>
226
227       <listitem>
228         <para>RSN/WPA2 (IEEE 802.11i)</para>
229         <itemizedlist>
230           <listitem>
231             <para>pre-authentication</para>
232           </listitem>
233
234           <listitem>
235             <para>PMKSA caching</para>
236           </listitem>
237         </itemizedlist>
238       </listitem>
239     </itemizedlist>
240   </refsect1>
241
242   <refsect1>
243     <title>Available Drivers</title>
244     <para>The available drivers to specify with the -D option are:</para>
245
246     <variablelist>
247       <varlistentry>
248         <term>hostap</term>
249         <listitem>
250           <para>(default) Host AP driver (Intersil Prism2/2.5/3).
251           (this can also be used with Linuxant DriverLoader).</para>
252         </listitem>
253       </varlistentry>
254
255       <varlistentry>
256         <term>hermes</term>
257         <listitem>
258           <para>Agere Systems Inc. driver (Hermes-I/Hermes-II).</para>
259         </listitem>
260       </varlistentry>
261
262       <varlistentry>
263         <term>madwifi</term>
264         <listitem>
265           <para>MADWIFI 802.11 support (Atheros, etc.).</para>
266         </listitem>
267       </varlistentry>
268
269       <varlistentry>
270         <term>atmel</term>
271         <listitem>
272           <para>ATMEL AT76C5XXx (USB, PCMCIA).</para>
273         </listitem>
274       </varlistentry>
275
276       <varlistentry>
277         <term>wext</term>
278         <listitem>
279           <para>Linux wireless extensions (generic).</para>
280         </listitem>
281       </varlistentry>
282
283       <varlistentry>
284         <term>ndiswrapper</term>
285         <listitem>
286           <para>Linux ndiswrapper.</para>
287         </listitem>
288       </varlistentry>
289
290       <varlistentry>
291         <term>broadcom</term>
292         <listitem>
293           <para>Broadcom wl.o driver.</para>
294         </listitem>
295       </varlistentry>
296
297       <varlistentry>
298         <term>ipw</term>
299         <listitem>
300           <para>Intel ipw2100/2200 driver.</para>
301         </listitem>
302       </varlistentry>
303
304       <varlistentry>
305         <term>wired</term>
306         <listitem>
307           <para>wpa_supplicant wired Ethernet driver</para>
308         </listitem>
309       </varlistentry>
310
311       <varlistentry>
312         <term>bsd</term>
313         <listitem>
314           <para>BSD 802.11 support (Atheros, etc.).</para>
315         </listitem>
316       </varlistentry>
317
318       <varlistentry>
319         <term>ndis</term>
320         <listitem>
321           <para>Windows NDIS driver.</para>
322         </listitem>
323       </varlistentry>
324     </variablelist>
325   </refsect1>
326
327   <refsect1>
328     <title>Command Line Options</title>
329     <variablelist>
330       <varlistentry>
331         <term>-B</term>
332         <listitem>
333           <para>Run daemon in the background.</para>
334         </listitem>
335       </varlistentry>
336
337       <varlistentry>
338         <term>-i ifname</term>
339         <listitem>
340           <para>Interface to listen on.</para>
341         </listitem>
342       </varlistentry>
343
344       <varlistentry>
345         <term>-c filename</term>
346         <listitem>
347           <para>Path to configuration file.</para>
348         </listitem>
349       </varlistentry>
350
351       <varlistentry>
352         <term>-P PID_file</term>
353         <listitem>
354           <para>Path to PID file.</para>
355         </listitem>
356       </varlistentry>
357
358       <varlistentry>
359         <term>-C ctrl_interface</term>
360         <listitem>
361           <para>Path to ctrl_interface socket (only used if -c is not).</para>
362         </listitem>
363       </varlistentry>
364
365       <varlistentry>
366         <term>-g global ctrl_interface</term>
367         <listitem>
368           <para>Path to global ctrl_interface socket.</para>
369         </listitem>
370       </varlistentry>
371
372       <varlistentry>
373         <term>-D driver</term>
374         <listitem>
375           <para>Driver to use.  See the available options below.</para>
376         </listitem>
377       </varlistentry>
378
379       <varlistentry>
380         <term>-f output file</term>
381         <listitem>
382           <para>Log output to specified file instead of stdout.</para>
383         </listitem>
384       </varlistentry>
385
386       <varlistentry>
387         <term>-d</term>
388         <listitem>
389           <para>Increase debugging verbosity (-dd even more).</para>
390         </listitem>
391       </varlistentry>
392
393       <varlistentry>
394         <term>-K</term>
395         <listitem>
396           <para>Include keys (passwords, etc.) in debug output.</para>
397         </listitem>
398       </varlistentry>
399
400       <varlistentry>
401         <term>-t</term>
402         <listitem>
403           <para>Include timestamp in debug messages.</para>
404         </listitem>
405       </varlistentry>
406
407       <varlistentry>
408         <term>-e</term>
409         <listitem>
410           <para>Use external IEEE 802.1X Supplicant (e.g.,
411           <command>xsupplicant</command>) (this disables the internal
412           Supplicant).</para>
413         </listitem>
414       </varlistentry>
415
416       <varlistentry>
417         <term>-h</term>
418         <listitem>
419           <para>Help.  Show a usage message.</para>
420         </listitem>
421       </varlistentry>
422
423       <varlistentry>
424         <term>-L</term>
425         <listitem>
426           <para>Show license (GPL and BSD).</para>
427         </listitem>
428       </varlistentry>
429
430       <varlistentry>
431         <term>-q</term>
432         <listitem>
433           <para>Decrease debugging verbosity (-qq even less).</para>
434         </listitem>
435       </varlistentry>
436       <varlistentry>
437         <term>-v</term>
438         <listitem>
439           <para>Show version.</para>
440         </listitem>
441       </varlistentry>
442
443       <varlistentry>
444         <term>-w</term>
445         <listitem>
446           <para>wait for interface to be added, if needed.  normally,
447           <command>wpa_supplicant</command> will exit if the interface
448           is not there yet.</para>
449         </listitem>
450       </varlistentry>
451
452       <varlistentry>
453         <term>-N</term>
454         <listitem>
455           <para>Start describing new interface.</para>
456         </listitem>
457       </varlistentry>
458     </variablelist>
459   </refsect1>
460
461   <refsect1>
462     <title>Examples</title>
463
464     <para>In most common cases, <command>wpa_supplicant</command> is
465     started with:</para>
466
467 <blockquote><programlisting>
468 wpa_supplicant -Bw -c/etc/wpa_supplicant.conf -iwlan0
469 </programlisting></blockquote>
470
471     <para>This makes the process fork into background and wait for the wlan0
472     interface if it is not available at startup time.</para>
473
474     <para>The easiest way to debug problems, and to get debug log for
475     bug reports, is to start <command>wpa_supplicant</command> on
476     foreground with debugging enabled:</para>
477
478 <blockquote><programlisting>
479 wpa_supplicant -c/etc/wpa_supplicant.conf -iwlan0 -d
480 </programlisting></blockquote>
481
482     <para><command>wpa_supplicant</command> can control multiple
483     interfaces (radios) either by running one process for each
484     interface separately or by running just one process and list of
485     options at command line. Each interface is separated with -N
486     argument. As an example, following command would start
487     wpa_supplicant for two interfaces:</para>
488
489 <blockquote><programlisting>
490 wpa_supplicant \
491         -c wpa1.conf -i wlan0 -D hostap -N \
492         -c wpa2.conf -i ath0 -D madwifi
493 </programlisting></blockquote>
494   </refsect1>
495
496   <refsect1>
497     <title>OS Requirements</title>
498     <para>Current hardware/software requirements:</para>
499
500     <itemizedlist>
501       <listitem>
502         <para>Linux kernel 2.4.x or 2.6.x with Linux Wireless
503         Extensions v15 or newer</para>
504       </listitem>
505
506
507       <listitem>
508         <para>FreeBSD 6-CURRENT</para>
509       </listitem>
510
511       <listitem>
512         <para>Microsoft Windows with WinPcap (at least WinXP, may work
513         with other versions)</para>
514       </listitem>
515     </itemizedlist>
516   </refsect1>
517
518   <refsect1>
519     <title>Supported Drivers</title>
520     <variablelist>
521       <varlistentry>
522         <term>Host AP driver for Prism2/2.5/3 (development
523         snapshot/v0.2.x)</term>
524         <listitem>
525           <para> (http://hostap.epitest.fi/) Driver needs to be set in
526         Managed mode ('iwconfig wlan0 mode managed').  Please note
527         that station firmware version needs to be 1.7.0 or newer to
528         work in WPA mode.</para>
529         </listitem>
530       </varlistentry>
531
532       <varlistentry>
533         <term>Linuxant DriverLoader</term>
534         <listitem>
535           <para>(http://www.linuxant.com/driverloader/)
536         with Windows NDIS driver for your wlan card supporting WPA.</para>
537         </listitem>
538       </varlistentry>
539
540       <varlistentry>
541         <term>Agere Systems Inc. Linux Driver</term>
542         <listitem>
543           <para> (http://www.agere.com/support/drivers/) Please note
544         that the driver interface file (driver_hermes.c) and hardware
545         specific include files are not included in the wpa_supplicant
546         distribution. You will need to copy these from the source
547         package of the Agere driver.</para>
548         </listitem>
549       </varlistentry>
550
551       <varlistentry>
552         <term>madwifi driver for cards based on Atheros chip set (ar521x)</term>
553         <listitem>
554           <para> (http://sourceforge.net/projects/madwifi/) Please
555         note that you will need to modify the wpa_supplicant .config
556         file to use the correct path for the madwifi driver root
557         directory (CFLAGS += -I../madwifi/wpa line in example
558         defconfig).</para>
559         </listitem>
560       </varlistentry>
561
562       <varlistentry>
563         <term>ATMEL AT76C5XXx driver for USB and PCMCIA cards</term>
564         <listitem>
565           <para> (http://atmelwlandriver.sourceforge.net/).</para>
566         </listitem>
567       </varlistentry>
568
569       <varlistentry>
570         <term>Linux ndiswrapper</term>
571         <listitem>
572           <para> (http://ndiswrapper.sourceforge.net/) with Windows
573         NDIS driver.</para>
574         </listitem>
575       </varlistentry>
576
577       <varlistentry>
578         <term>Broadcom wl.o driver</term>
579         <listitem>
580           <para> This is a generic Linux driver for Broadcom IEEE
581         802.11a/g cards.  However, it is proprietary driver that is
582         not publicly available except for couple of exceptions, mainly
583         Broadcom-based APs/wireless routers that use Linux. The driver
584         binary can be downloaded, e.g., from Linksys support site
585         (http://www.linksys.com/support/gpl.asp) for Linksys
586         WRT54G. The GPL tarball includes cross-compiler and the needed
587         header file, wlioctl.h, for compiling wpa_supplicant.  This
588         driver support in wpa_supplicant is expected to work also with
589         other devices based on Broadcom driver (assuming the driver
590         includes client mode support).</para>
591         </listitem>
592       </varlistentry>
593
594       <varlistentry>
595         <term> Intel ipw2100 driver</term>
596         <listitem>
597           <para> (http://sourceforge.net/projects/ipw2100/)</para>
598         </listitem>
599       </varlistentry>
600
601       <varlistentry>
602         <term>Intel ipw2200 driver</term>
603         <listitem>
604           <para> (http://sourceforge.net/projects/ipw2200/)</para>
605         </listitem>
606       </varlistentry>
607
608       <varlistentry>
609         <term>Linux wireless extensions</term>
610         <listitem>
611           <para>In theory, any driver that supports Linux wireless
612         extensions can be used with IEEE 802.1X (i.e., not WPA) when
613         using ap_scan=0 option in configuration file.</para>
614         </listitem>
615       </varlistentry>
616       
617       <varlistentry>
618         <term>Wired Ethernet drivers</term>
619         <listitem>
620           <para>Use ap_scan=0.</para>
621         </listitem>
622       </varlistentry>
623
624       <varlistentry>
625         <term>BSD net80211 layer (e.g., Atheros driver)</term>
626         <listitem>
627           <para>At the moment, this is for FreeBSD 6-CURRENT branch.</para>
628         </listitem>
629       </varlistentry>
630
631       <varlistentry>
632         <term>Windows NDIS</term>
633         <listitem>
634           <para>The current Windows port requires WinPcap
635         (http://winpcap.polito.it/).  See README-Windows.txt for more
636         information.</para>
637         </listitem>
638       </varlistentry>
639     </variablelist>
640
641         
642     <para>wpa_supplicant was designed to be portable for different
643     drivers and operating systems. Hopefully, support for more wlan
644     cards and OSes will be added in the future. See developer.txt for
645     more information about the design of wpa_supplicant and porting to
646     other drivers. One main goal is to add full WPA/WPA2 support to
647     Linux wireless extensions to allow new drivers to be supported
648     without having to implement new driver-specific interface code in
649     wpa_supplicant.</para>
650   </refsect1>
651
652   <refsect1>
653     <title>Architecture</title> <para>The
654     <command>wpa_supplicant</command> system consists of the following
655     components:</para>
656
657     <variablelist>
658       <varlistentry>
659         <term><filename>wpa_supplicant.conf</filename> </term>
660         <listitem>
661         <para>the configuration file describing all networks that the
662         user wants the computer to connect to.  </para>
663         </listitem>
664       </varlistentry>
665       <varlistentry>
666         <term><command>wpa_supplicant</command></term>
667         <listitem><para>the program that directly interacts with the
668         network interface.  </para></listitem>
669       </varlistentry>
670       <varlistentry>
671         <term><command>wpa_cli</command></term> <listitem><para> the
672         client program that provides a high-level interface to the
673         functionality of the daemon.  </para></listitem>
674       </varlistentry>
675       <varlistentry>
676         <term><command>wpa_passphrase</command></term>
677         <listitem><para>a utility needed to construct
678         <filename>wpa_supplicant.conf</filename> files that include
679         encrypted passwords.</para></listitem>
680       </varlistentry>
681     </variablelist>
682   </refsect1>
683
684   <refsect1>
685     <title>Quick Start</title>
686
687     <para>First, make a configuration file, e.g.
688     <filename>/etc/wpa_supplicant.conf</filename>, that describes the networks
689     you are interested in.  See <citerefentry>
690         <refentrytitle>wpa_supplicant.conf</refentrytitle>
691         <manvolnum>5</manvolnum>
692       </citerefentry>
693     for details.</para>
694
695     <para>Once the configuration is ready, you can test whether the
696     configuration works by running <command>wpa_supplicant</command>
697     with following command to start it on foreground with debugging
698     enabled:</para>
699
700     <blockquote><programlisting>
701 wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d
702     </programlisting></blockquote>
703
704     <para>Assuming everything goes fine, you can start using following
705     command to start <command>wpa_supplicant</command> on background
706     without debugging:</para>
707
708     <blockquote><programlisting>
709 wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -B
710     </programlisting></blockquote>
711
712     <para>Please note that if you included more than one driver
713     interface in the build time configuration (.config), you may need
714     to specify which interface to use by including -D&lt;driver
715     name&gt; option on the command line.</para>
716
717     <!-- XXX at this point, the page could include a little script
718          based on wpa_cli to wait for a connection and then run
719          dhclient -->
720
721   </refsect1>
722
723   <refsect1>
724     <title>Interface to pcmcia-cs/cardmrg</title>
725
726     <para>For example, following small changes to pcmcia-cs scripts
727     can be used to enable WPA support:</para>
728
729     <para>Add MODE="Managed" and WPA="y" to the network scheme in
730     <filename>/etc/pcmcia/wireless.opts</filename>.</para>
731
732     <para>Add the following block to the end of 'start' action handler
733     in <filename>/etc/pcmcia/wireless</filename>:</para>
734
735     <blockquote><programlisting>
736 if [ "$WPA" = "y" -a -x /usr/local/bin/wpa_supplicant ]; then
737     /usr/local/bin/wpa_supplicant -Bw -c/etc/wpa_supplicant.conf -i$DEVICE
738 fi
739     </programlisting></blockquote>
740
741
742     <para>Add the following block to the end of 'stop' action handler
743     (may need to be separated from other actions) in
744     <filename>/etc/pcmcia/wireless</filename>:</para>
745
746     <blockquote><programlisting>
747 if [ "$WPA" = "y" -a -x /usr/local/bin/wpa_supplicant ]; then
748     killall wpa_supplicant
749 fi
750     </programlisting></blockquote>
751
752     <para>This will make <command>cardmgr</command> start
753     <command>wpa_supplicant</command> when the card is plugged
754     in. <command>wpa_supplicant</command> will wait until the
755     interface is set up--either when a static IP address is configured
756     or when DHCP client is started--and will then negotiate keys with
757     the AP.</para>
758   </refsect1>
759
760   <refsect1>
761     <title>See Also</title>
762     <para>
763       <citerefentry>
764         <refentrytitle>wpa_background</refentrytitle>
765         <manvolnum>8</manvolnum>
766       </citerefentry>
767       <citerefentry>
768         <refentrytitle>wpa_supplicant.conf</refentrytitle>
769         <manvolnum>5</manvolnum>
770       </citerefentry>
771       <citerefentry>
772         <refentrytitle>wpa_cli</refentrytitle>
773         <manvolnum>8</manvolnum>
774       </citerefentry>
775       <citerefentry>
776         <refentrytitle>wpa_passphrase</refentrytitle>
777         <manvolnum>8</manvolnum>
778       </citerefentry>
779     </para>
780   </refsect1>
781   <refsect1>
782     <title>Legal</title>
783     <para>wpa_supplicant is copyright (c) 2003-2005,
784     Jouni Malinen <email>j@w1.fi</email> and
785     contributors.
786     All Rights Reserved.</para>
787
788     <para>This program is dual-licensed under both the GPL version 2
789     and BSD license. Either license may be used at your option.</para>
790   </refsect1>
791 </refentry>