steps to compile wpa_supplicant ubuntu 16

Linuxtopic
0

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

01wpa_lsb.png

Step 1

Install Requirement Packages

apt install libssl-dev build-essential checkinstall  pkg-config

01wpa_req.png

apt install dbus libdbus-1-dev libdbus-glib-1-2 libdbus-glib-1-dev libreadline-dev libncurses5-dev

01wpa_req2.png

apt install libnl-genl-3-dev libnl-3-dev

01wpa_reg2.png

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
01wpa_down.png


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

01wpa_conf1.png

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

01wpa_conf2.png

Step 4

Compile & create package

cd wpa_supplicant

make

01_wpa_compile.png

Install Wpa_supplicant & create wpa_supplicant 2.6 package

checkinstall

01wpa_checkinstall.png

Press Enter  

01wpa_check2.png

Step 5

Package created check on same directory 

ls wpa-supplicant*

01wpa_package.png


Step 6

Check wpa_supplicant version
wpa_supplicant -v

01wpa_version.png

Post a Comment

0Comments

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Ok, Go it!