Difference between revisions of "WPA Supplicant"

From CBLFS
Jump to navigationJump to search
(Configuration Information)
 
(5 intermediate revisions by 4 users not shown)
Line 8: Line 8:
  
  
{{Package-Introduction|Twpa_supplicant is a WPA Supplicant for Linux, BSD, Mac OS X, and Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). It is suitable for both desktop/laptop computers and embedded systems. Supplicant is the IEEE 802.1X/WPA component that is used in the client stations. It implements key negotiation with a WPA Authenticator and it controls the roaming and IEEE 802.11 authentication/association of the wlan driver.
+
{{Package-Introduction|WPA Supplicant is a daemon which allows a wireless card to associate with a network using WEP/WPA/WPA2 (IEEE 802.11i / RSN) networks. The actual daemon (wpa_supplicant) parses a config file which declares networks to scan for and keys to use for authentication. The networks scanned can be referenced by MAC or SSID. If nothing is declared it'll associate with the strongest open network. | http://hostap.epitest.fi/wpa_supplicant/}}
 
 
wpa_supplicant is designed to be a "daemon" program that runs in the background and acts as the backend component controlling the wireless connection. wpa_supplicant supports separate frontend programs and a text-based frontend (wpa_cli) and a GUI (wpa_gui) are included with wpa_supplicant.
 
 
 
wpa_supplicant uses a flexible build configuration that can be used to select which features are included. This allows minimal code size (from ca. 50 kB binary for WPA/WPA2-Personal and 130 kB binary for WPA/WPA2-Enterprise without debugging code to 450 kB with most features and full debugging support; these example sizes are from a build for x86 target). | http://hostap.epitest.fi/wpa_supplicant/}}
 
 
 
 
 
  
 +
{{Note|WPA Supplicant DOES NOT AND WILL NEVER HAVE ANYTHING TO DO WITH IP/GATEWAY/DNS ASSIGNMENT.  So don't ask about it.  Refer any questions on that subject to dhcpcd and/or ifplugd and co. }}
 
== Dependencies ==
 
== Dependencies ==
=== Optional ===
+
=== Recommended ===
 
* [[D-BUS]]
 
* [[D-BUS]]
 
=== Optional Drivers ===
 
=== Optional Drivers ===
Line 27: Line 22:
 
You need to create a '''.config''' file based on '''defconfig''' in the top-level of the source directory. The '''README''' has a lot of good information regarding creating a config.
 
You need to create a '''.config''' file based on '''defconfig''' in the top-level of the source directory. The '''README''' has a lot of good information regarding creating a config.
  
 +
cd wpa_supplicant &&
 
  cp defconfig .config &&
 
  cp defconfig .config &&
 
  cat >> .config << "EOF"  
 
  cat >> .config << "EOF"  
Line 42: Line 38:
 
Install the package
 
Install the package
  
  cp -v wpa_cli wpa_supplicant wpa_passphrase /usr/sbin
+
  cp -v wpa_cli wpa_supplicant wpa_passphrase /sbin
  
 
If you have [[D-BUS]] installed execute the following commands to add the configuration and services files for [[D-BUS]]:
 
If you have [[D-BUS]] installed execute the following commands to add the configuration and services files for [[D-BUS]]:
  
 
  cp -v dbus-wpa_supplicant.conf /etc/dbus-1/system.d/ &&
 
  cp -v dbus-wpa_supplicant.conf /etc/dbus-1/system.d/ &&
  cp -v dbus-wpa_supplicant.service /usr/share/dbus-1/services/
+
  cp -v dbus-wpa_supplicant.service /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
  
 
== Multilib ==
 
== Multilib ==
Line 62: Line 58:
 
=== 64Bit ===
 
=== 64Bit ===
  
  Please Contribute this section.
+
  CC="gcc ${BUILD64}" make &&
 +
cp wpa_cli wpa_supplicant wpa_passphrase /usr/sbin
 +
 
 +
[[Category:Network Utilities]]

Latest revision as of 14:44, 21 February 2010

Download Source: http://hostap.epitest.fi/releases/wpa_supplicant-0.6.10.tar.gz


Introduction to WPA Supplicant

WPA Supplicant is a daemon which allows a wireless card to associate with a network using WEP/WPA/WPA2 (IEEE 802.11i / RSN) networks. The actual daemon (wpa_supplicant) parses a config file which declares networks to scan for and keys to use for authentication. The networks scanned can be referenced by MAC or SSID. If nothing is declared it'll associate with the strongest open network.

Project Homepage: http://hostap.epitest.fi/wpa_supplicant/

Caution.png

Note

WPA Supplicant DOES NOT AND WILL NEVER HAVE ANYTHING TO DO WITH IP/GATEWAY/DNS ASSIGNMENT. So don't ask about it. Refer any questions on that subject to dhcpcd and/or ifplugd and co.

Dependencies

Recommended

Optional Drivers

Configuration Information

You need to create a .config file based on defconfig in the top-level of the source directory. The README has a lot of good information regarding creating a config.

cd wpa_supplicant &&
cp defconfig .config &&
cat >> .config << "EOF" 
CONFIG_DRIVER_MADWIFI=y
CFLAGS += -I/path/to/madwifi/source
CONFIG_CTRL_IFACE_DBUS=y
EOF

Non-Multilib

Compile the package:

make

Install the package

cp -v wpa_cli wpa_supplicant wpa_passphrase /sbin

If you have D-BUS installed execute the following commands to add the configuration and services files for D-BUS:

cp -v dbus-wpa_supplicant.conf /etc/dbus-1/system.d/ &&
cp -v dbus-wpa_supplicant.service /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service

Multilib

This package does not install any libraries so only one installation is needed.

32Bit

Please Contribute this section.

N32

Please Contribute this section.

64Bit

CC="gcc ${BUILD64}" make &&
cp wpa_cli wpa_supplicant wpa_passphrase /usr/sbin