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=file
CONFIG_CTRL_IFACE=y
CONFIG_DEBUG_FILE=y
CONFIG_DEBUG_SYSLOG=y
CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
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 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=y
CONFIG_CTRL_IFACE_DBUS_NEW=y
CONFIG_CTRL_IFACE_DBUS_INTRO=y
EOF
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