%general-entities; ]> $LastChangedBy$ $Date$ wpa_supplicant-&wpa_supplicant-version; wpa_supplicant Introduction to WPA Supplicant WPA Supplicant is a Wi-Fi Protected Access (WPA) client and IEEE 802.1X supplicant. It implements WPA key negotiation with a WPA Authenticator and Extensible Authentication Protocol (EAP) authentication with an Authentication Server. In addition, it controls the roaming and IEEE 802.11 authentication/association of the wireless LAN driver. This is useful for connecting to a password protected wireless access point. &lfs72_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &wpa_supplicant-md5sum; Download size: &wpa_supplicant-size; Estimated disk space required: &wpa_supplicant-buildsize; Estimated build time: &wpa_supplicant-time; WPA Supplicant Dependencies Recommended and Optional and User Notes: Kernel Configuration Enable the following options in the kernel configuration and recompile the kernel if necessary: [*] Networking support ---> [*] Wireless ---> [*] cfg80211 - wireless configuration API [*] cfg80211 wireless extensions compatibility [*] Generic IEEE 802.11 Networking Stack (mac80211) Device Drivers ---> [*] Network device support ---> [*] Wireless LAN ---> Select the options that support your hardware: lspci from can be used to view your hardware configuration. wpa_supplicant Installation of WPA Supplicant First you will need to create an initial configuration file for the build process. You can read wpa_supplicant/README and wpa_supplicant/defconfig for the explanation of the following options as well as other options that can be used. Create a build configuration file that should work for standard WiFi setups by running the following command: cat > wpa_supplicant/.config << "EOF" CONFIG_BACKEND=file CONFIG_CTRL_IFACE=y CONFIG_DRIVER_NL80211=y CONFIG_DRIVER_WEXT=y CONFIG_DRIVER_WIRED=y CONFIG_EAP_GTC=y CONFIG_EAP_LEAP=y CONFIG_EAP_MD5=y CONFIG_EAP_MSCHAPV2=y CONFIG_EAP_OTP=y CONFIG_EAP_PEAP=y CONFIG_EAP_TLS=y CONFIG_EAP_TTLS=y CONFIG_IEEE8021X_EAPOL=y CONFIG_IPV6=y CONFIG_LIBNL32=y CONFIG_PEERKEY=y CONFIG_PKCS12=y CONFIG_READLINE=y CONFIG_SMARTCARD=y CONFIG_WPS=y CFLAGS += -I/usr/include/libnl3 EOF If you wish to use WPA Supplicant with , make sure that you have installed and , then add following options to the WPA Supplicant build configuration file by running the following command: cat >> wpa_supplicant/.config << "EOF" CONFIG_CTRL_IFACE_DBUS=y CONFIG_CTRL_IFACE_DBUS_NEW=y CONFIG_CTRL_IFACE_DBUS_INTRO=y EOF Install WPA Supplicant by running the following commands: cd wpa_supplicant && make BINDIR=/sbin LIBDIR=/lib This package does not come with a test suite. Now, as the root user: install -v -m755 wpa_{cli,passphrase,supplicant} /sbin && install -v -m644 doc/docbook/wpa_supplicant.conf.5 /usr/share/man/man5 && install -v -m644 doc/docbook/wpa_{cli,passphrase,supplicant}.8 /usr/share/man/man8 If you have built WPA Supplicant with D-Bus support, you will need to install D-Bus configuration files. Install them by running the following commands as the root user: install -v -m644 dbus/fi.{epitest.hostap.WPASupplicant,w1.wpa_supplicant1}.service \ /usr/share/dbus-1/system-services && install -v -m644 dbus/dbus-wpa_supplicant.conf /etc/dbus-1/system.d/wpa_supplicant.conf You will need to restart system D-Bus daemon before you can use WPA Supplicant D-Bus interface. Configuring wpa_supplicant Config File /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf Configuration Information To connect to an access point that uses a password you need to put the pre-shared key in /etc/wpa_supplicant.conf. Use wpa_passphrase to generate this. SSID is the string that the access point/router transmits to identify itself. As the root user: wpa_passphrase SSID SECRET_PASSWORD > /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf can hold the details of several access points. When you run wpa_supplicant it will scan for the SSIDs it can see and choose the appropriate password to connect. If you want to connect to an access point that isn't password protected, put an entry like this in /etc/wpa_supplicant.conf. Replace "Some-SSID" with the SSID of the access point/router. network={ ssid="Some-SSID" key_mgmt=NONE } There are many options that you could use to tweak how you connect to each access point. They are described in some detail in the wpa_supplicant/wpa_supplicant.conf file in the source tree. To use wpa_cli to control the running >wpa_supplicant daemon, add a control interface to /etc/wpa_supplicant.conf as the root user: echo ctrl_interface=/run/wpa_supplicant >> /etc/wpa_supplicant.conf Connecting to an Access Point If your router/access point uses DHCP to allocate IP addresses you can install and use it to connect. As the root user: wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 -Dnl80211,wext sleep 2 # let it settle dhcpcd Alternatively, you can use static addresses on your local network. This has the advantage that you can put the hostnames in /etc/hosts. Replace 192.168.1.6 with the static address you've chosen. Replace 192.168.1.1 with the local IP address of the access point/router. Run the following commands as the root user: ip addr add 192.168.1.6 dev wlan0 ip link set wlan0 up wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 -Dnl80211,wext ip route add 192.168.1.1 dev wlan0 ip route add default via 192.168.1.1 dev wlan0 Contents Installed Programs Installed Libraries Installed Directories wpa_supplicant, wpa_passphrase and wpa_cli none none Short Descriptions wpa_supplicant is a daemon that can connect to a password protected wireless access point. wpa_supplicant wpa_passphrase takes an SSID and a password and generates a simple configuration that wpa_supplicant can understand. wpa_passphrase wpa_cli is a command line interface used to control a running wpa_supplicant daemon. wpa_cli