<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=1164587067</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=1164587067"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/1164587067"/>
	<updated>2026-04-22T13:14:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_install_wpa_supplicant&amp;diff=26594</id>
		<title>How to install wpa supplicant</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_install_wpa_supplicant&amp;diff=26594"/>
		<updated>2006-11-27T00:39:46Z</updated>

		<summary type="html">&lt;p&gt;1164587067: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installing wpa_supplicant ===&lt;br /&gt;
AtRPMS contains packages for [[:Category:Fedora|Fedora Core]].&lt;br /&gt;
&lt;br /&gt;
*Get the [http://hostap.epitest.fi/wpa_supplicant/ source] &lt;br /&gt;
*Make sure your kernel includes the drivers for your wireless card. Here's a sample .config for [[madwifi]] users:&lt;br /&gt;
&lt;br /&gt;
  #&lt;br /&gt;
  #.config&lt;br /&gt;
  #&lt;br /&gt;
  # Uncomment following two lines and fix the paths if you have installed openssl&lt;br /&gt;
  # in non-default location&lt;br /&gt;
  #CFLAGS += -I/usr/local/openssl/include&lt;br /&gt;
  #LIBS += -L/usr/local/openssl/lib&lt;br /&gt;
  # Driver interface for Host AP driver&lt;br /&gt;
  #CONFIG_DRIVER_HOSTAP=y&lt;br /&gt;
  # Driver interface for Agere driver&lt;br /&gt;
  #CONFIG_DRIVER_HERMES=y&lt;br /&gt;
  # Change include directories to match with the local setup&lt;br /&gt;
  #CFLAGS += -I../../hcf -I../../include -I../../include/hcf&lt;br /&gt;
  #CFLAGS += -I../../include/wireless&lt;br /&gt;
  # Driver interface for Prism54 driver&lt;br /&gt;
  # (Note: Prism54 is not yet supported, i.e., this will not work as-is and is&lt;br /&gt;
  # for developers only)&lt;br /&gt;
  #CONFIG_DRIVER_PRISM54=y&lt;br /&gt;
  # Driver interface for ndiswrapper&lt;br /&gt;
  #CONFIG_DRIVER_NDISWRAPPER=y&lt;br /&gt;
  # Driver interface for Atmel driver&lt;br /&gt;
  #CONFIG_DRIVER_ATMEL=y&lt;br /&gt;
  # Driver interface for Broadcom driver&lt;br /&gt;
  #CONFIG_DRIVER_BROADCOM=y&lt;br /&gt;
  # Example path for wlioctl.h; change to match your configuration&lt;br /&gt;
  #CFLAGS += -I/opt/WRT54GS/release/src/include&lt;br /&gt;
  # Driver interface for Intel ipw2100/2200 driver&lt;br /&gt;
  #CONFIG_DRIVER_IPW=y&lt;br /&gt;
  CONFIG_DRIVER_MADWIFI=y&lt;br /&gt;
  # Change include directories to match with the local setup&lt;br /&gt;
  CFLAGS += -I../madwif&lt;br /&gt;
  CONFIG_DRIVER_WEXT=y&lt;br /&gt;
  # Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)&lt;br /&gt;
  #CONFIG_DRIVER_BSD=y&lt;br /&gt;
  #CFLAGS += -I/usr/local/include&lt;br /&gt;
  #LIBS += -L/usr/local/lib&lt;br /&gt;
  # Driver interface for Windows NDIS&lt;br /&gt;
  #CONFIG_DRIVER_NDIS=y&lt;br /&gt;
  #CFLAGS += -I/usr/include/w32api/ddk&lt;br /&gt;
  #LIBS += -L/usr/local/lib&lt;br /&gt;
  # For native build using mingw&lt;br /&gt;
  #CONFIG_NATIVE_WINDOWS=y&lt;br /&gt;
  # Additional directories for cross-compilation on Linux host for mingw target&lt;br /&gt;
  #CFLAGS += -I/opt/mingw/mingw32/include/ddk&lt;br /&gt;
  #LIBS += -L/opt/mingw/mingw32/lib&lt;br /&gt;
  #CC=mingw32-gcc&lt;br /&gt;
  # Driver interface for development testing&lt;br /&gt;
  #CONFIG_DRIVER_TEST=y&lt;br /&gt;
  # Driver interface for wired Ethernet drivers&lt;br /&gt;
  #CONFIG_DRIVER_WIRED=y&lt;br /&gt;
  CONFIG_IEEE8021X_EAPOL=y&lt;br /&gt;
  # EAP-MD5 (automatically included if EAP-TTLS is enabled)&lt;br /&gt;
  CONFIG_EAP_MD5=y&lt;br /&gt;
  # EAP-MSCHAPv2 (automatically included if EAP-PEAP is enabled)&lt;br /&gt;
  CONFIG_EAP_MSCHAPV2=y&lt;br /&gt;
  # EAP-TLS&lt;br /&gt;
  CONFIG_EAP_TLS=y&lt;br /&gt;
  # EAL-PEAP&lt;br /&gt;
  CONFIG_EAP_PEAP=y&lt;br /&gt;
  # EAP-TTLS&lt;br /&gt;
  CONFIG_EAP_TTLS=y&lt;br /&gt;
  # EAP-GTC&lt;br /&gt;
  CONFIG_EAP_GTC=y &lt;br /&gt;
  # EAP-OTP&lt;br /&gt;
  CONFIG_EAP_OTP=y&lt;br /&gt;
  # LEAP&lt;br /&gt;
  CONFIG_EAP_LEAP=y&lt;br /&gt;
  # PKCS#12 (PFX) support (used to read private key and certificate file from&lt;br /&gt;
  # a file that usually has extension .p12 or .pfx)&lt;br /&gt;
  CONFIG_PKCS12=y&lt;br /&gt;
  # Include control interface for external programs, e.g, wpa_cli&lt;br /&gt;
  CONFIG_CTRL_IFACE=y&lt;br /&gt;
&lt;br /&gt;
* install wpa_supplicant by {{cmdroot|make &amp;amp;&amp;amp; make install}}&lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
&lt;br /&gt;
Set {{path|wpa_supplicant.conf}} to the following:&lt;br /&gt;
&lt;br /&gt;
You have to change the values according to the response of {{cmdroot|wpa_passphrase &amp;lt;yourAPssid&amp;gt; &amp;lt;yourpassphrase&amp;gt;}}.&lt;br /&gt;
&lt;br /&gt;
==== For WPA-PSK ====&lt;br /&gt;
&amp;lt;pre&amp;gt;  &lt;br /&gt;
ctrl_interface=/var/run/wpa_supplicant&lt;br /&gt;
ctrl_interface_group=0&lt;br /&gt;
eapol_version=1&lt;br /&gt;
# ap_scan=2 was the one for me you may try 0 or 1 indstead of 2&lt;br /&gt;
ap_scan=2&lt;br /&gt;
fast_reauth=1&lt;br /&gt;
&lt;br /&gt;
network={&lt;br /&gt;
        ssid=&amp;quot;my_network&amp;quot;&lt;br /&gt;
        proto=WPA&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
        pairwise=TKIP&lt;br /&gt;
        group=TKIP&lt;br /&gt;
        psk=&amp;quot;secret_password&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== For WPA2-Personal ====&lt;br /&gt;
&amp;lt;pre&amp;gt;  &lt;br /&gt;
ctrl_interface=/var/run/wpa_supplicant&lt;br /&gt;
ctrl_interface_group=0&lt;br /&gt;
ap_scan=1&lt;br /&gt;
&lt;br /&gt;
network={&lt;br /&gt;
        ssid=&amp;quot;my_network&amp;quot;&lt;br /&gt;
        proto=RSN&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
        pairwise=CCMP TKIP&lt;br /&gt;
        group=CCMP TKIP&lt;br /&gt;
        psk=&amp;quot;secret_password&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Starting wpa_supplicant ===&lt;br /&gt;
====When using a recent [[ipw2200]] driver  ====&lt;br /&gt;
When using a recent [[ipw2200]] driver (e.g., as found in recent mainline kernels):&lt;br /&gt;
:{{cmdroot|wpa_supplicant -d -c/etc/wpa_supplicant.conf -ieth1 -Dwext}}&lt;br /&gt;
If every thing works as expected, you can replace &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; by &amp;lt;tt&amp;gt;-B&amp;lt;/tt&amp;gt; for the deamon mode.&lt;br /&gt;
&lt;br /&gt;
In the instructions below, replace the interface name &amp;lt;tt&amp;gt;ath0&amp;lt;/tt&amp;gt; with the appropriate one (usually &amp;lt;tt&amp;gt;eth1&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
====When using the [[madwifi]] driver ====&lt;br /&gt;
Make sure that the modules &amp;lt;tt&amp;gt;ath_pci&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;ath_hal&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;ath_rate_sample&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;wlan&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;wlan_tkip&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;wlan_xauth&amp;lt;/tt&amp;gt; are loaded (using {{cmdroot|lsmod}}).&lt;br /&gt;
&lt;br /&gt;
Now you are able to start wpa_supplicant by &lt;br /&gt;
:{{cmdroot|wpa_supplicant -d -c/etc/wpa_supplicant.conf -iath0 -Dmadwifi}}&lt;br /&gt;
If every thing works as expected, you can replace &amp;lt;tt&amp;gt;-d&amp;lt;/tt&amp;gt; by &amp;lt;tt&amp;gt;-B&amp;lt;/tt&amp;gt; for the deamon mode.&lt;br /&gt;
              &lt;br /&gt;
====Bringing up the network card manually==== &lt;br /&gt;
*Bring up the network interface with {{cmdroot|ifconfig ath0 &amp;lt;yourip&amp;gt; up}}.&lt;br /&gt;
{{NOTE|1=At the moment there is a problem within the madwifi driver or wpa_supplicant passing dhcp. ThatÂ´s why I use a fixed IP.&lt;br /&gt;
There are two patches one for wpa_supllicant (http://hostap.epitest.fi/bugz/show_bug.cgi?id=63) and one for madwifi                                            &lt;br /&gt;
(http://article.gmane.org/gmane.linux.drivers.madwifi.devel/1275). Each one is supposed to work.}}&lt;br /&gt;
*Change the routes and add the default gateway.&lt;br /&gt;
&lt;br /&gt;
====Bringing up the device at boottime (for {{Gentoo}} users)====&lt;br /&gt;
*Make a symbolic link&lt;br /&gt;
:{{cmdroot|cd /etc/init.d/}}&lt;br /&gt;
:{{cmdroot|ln -s net.lo net.ath0}}&lt;br /&gt;
*Copy {{path|wpa_supplicant.conf}} to {{path|/etc/conf.d/wpa_supplicant}}.&lt;br /&gt;
*Edit {{path|/etc/conf.d/net}}&lt;br /&gt;
  &lt;br /&gt;
  #&lt;br /&gt;
  #net&lt;br /&gt;
  #&lt;br /&gt;
  modules=( &amp;quot;wpa_supplicant&amp;quot; )&lt;br /&gt;
  wpa_supplicant_ath0=&amp;quot;-Dmadwifi&amp;quot;modules=( &amp;quot;wpa_supplicant&amp;quot; )&lt;br /&gt;
  wpa_timeout_ath0=60&lt;br /&gt;
  config_ath0=(&amp;quot;&amp;lt;yourip&amp;gt; netmask 255.255.255.0&amp;quot;)&lt;br /&gt;
  routes_ath0=(&amp;quot;default gw &amp;lt;yourgateway&amp;gt;&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
*Add net.ath0 to the default runlevel by executing&lt;br /&gt;
:{{cmdroot|rc-update add net.ath0 default}}&lt;br /&gt;
*Make sure all needed modules are in {{path|/etc/modules.autoload/2.x}}&lt;br /&gt;
&lt;br /&gt;
=== External Sources ===&lt;br /&gt;
*[http://hostap.epitest.fi/wpa_supplicant/ wpa_supplicant] source&lt;br /&gt;
*[http://www.linux-wireless.org/ linux-wireless] Wireless HOWTOs&lt;br /&gt;
*[http://rinta-aho.org/docs/wlan/wlan.html EAP-TLS] setting up WLAN network with EAP-TLS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div  style=&amp;quot;display:none&amp;quot;&amp;gt;&lt;br /&gt;
[l_sp_18]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://ring-tones.ks0dhs.info/nick-lachey-ringtone.html nick lachey ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/obie-trice-ringtone.html obie trice ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/garth-brooks-ringtone.html garth brooks ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/big-tymers-ringtone.html big tymers ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/hotlink-caller-ringtone.html hotlink caller ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/memphis-bleek-ringtone.html memphis bleek ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/hotlink-maxis-caller-ringtone.html hotlink maxis caller ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/maxis-caller-ringtone.html maxis caller ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/travis-ringtone.html travis ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/baby-bash-ringtone.html baby bash ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/seether-ringtone.html seether ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/sheryl-crow-ringtone.html sheryl crow ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/ginuwine-ringtone.html ginuwine ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/alicia-key-ringtone.html alicia key ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/kanye-west-ringtone.html kanye west ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/reba-mcentire-ringtone.html reba mcentire ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/eric-clapton-ringtone.html eric clapton ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/limp-bizkit-ringtone.html limp bizkit ringtone]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/knot-ringtone-slip.html knot ringtone slip]&lt;br /&gt;
[http://ring-tones.ks0dhs.info/crow-ringtone-sheryl.html crow ringtone sheryl]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>1164587067</name></author>
		
	</entry>
</feed>