Q . Step by Step wpa_suplicant 2.6 compile in Ubuntu 16.4
Q. How to compile wpa_supplicant 2.6 in Ubuntu
wpa_supplicant is IEEE 802.1X/WPA component that is used in the client stations. It is a cross-platform supplicant with support for WPA2 , WPA and WEP (IEEE 802.11i / RSN (Robust Secure Network)). It is work on desktops, laptops and embedded systems. wpa_supplicant is the.
OS - Ubuntu 16.4 Xenial
lsb_release -a
Step 1
Install Requirement Packages
apt install libssl-dev build-essential checkinstall pkg-config
apt install dbus libdbus-1-dev libdbus-glib-1-2 libdbus-glib-1-dev libreadline-dev libncurses5-dev
apt install libnl-genl-3-dev libnl-3-dev
Step 2
Download wap_supplicant source package & Extract
cd /tmp
https://w1.fi/wpa_supplicant
OR
wget https://w1.fi/releases/wpa_supplicant-2.6.tar.gz wpa_supplicant2.6.tar.gz
Extract wpa_supplicant2.6.tar.gz
tar xvf wpa_supplicant2.6.tar.gz
Step 3
Create a build configuration file that should work for standard WiFi setups by running the following command.
cd wpa_supplicant2.6
cat > wpa_supplicant/.config << "EOF"CONFIG_BACKEND=fileCONFIG_CTRL_IFACE=yCONFIG_DEBUG_FILE=yCONFIG_DEBUG_SYSLOG=yCONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMONCONFIG_DRIVER_NL80211=yCONFIG_DRIVER_WEXT=yCONFIG_DRIVER_WIRED=yCONFIG_EAP_GTC=yCONFIG_EAP_LEAP=yCONFIG_EAP_MD5=yCONFIG_EAP_MSCHAPV2=yCONFIG_EAP_OTP=yCONFIG_EAP_PEAP=yCONFIG_EAP_TLS=yCONFIG_EAP_TTLS=yCONFIG_IEEE8021X_EAPOL=yCONFIG_IPV6=yCONFIG_LIBNL32=yCONFIG_PEERKEY=yCONFIG_PKCS12=yCONFIG_READLINE=yCONFIG_SMARTCARD=yCONFIG_WPS=yCFLAGS += -I/usr/include/libnl3EOF
If you use WPA Supplicant with NetworkManager 1.8.0, add the following options to the WPA Supplicant build configuration
cat >> wpa_supplicant/.config << "EOF"CONFIG_CTRL_IFACE_DBUS=yCONFIG_CTRL_IFACE_DBUS_NEW=yCONFIG_CTRL_IFACE_DBUS_INTRO=yEOF
Step 4
Compile & create package
cd wpa_supplicant
make
Install Wpa_supplicant & create wpa_supplicant 2.6 package
checkinstall
Press Enter
Step 5
Package created check on same directory
ls wpa-supplicant*
Step 6
Check wpa_supplicant version
wpa_supplicant -v