wpa_supplicant.sgml 23 KB

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