Tuesday, September 29, 2020

Building wpa_supplicant application for Linux Platform


Building wpa_supplicant (Native Compilation)


Below are the Steps to build wpa_supplicant source code.

1. Download the wpa_supplicant latest release source code from below link

https://w1.fi/wpa_supplicant/

2. Extract the wpa_supplicant source code using below command

$tar -xzvf wpa_supplicant-2.9.tar.gz

3. install the dependent tools

Installing Net-link library

$sudo apt-get install libnl-genl-3-dev

Installing SSL library

$sudo apt-get install libssl-dev

Installing pip tool

$sudo apt install python-pip
$pip install --upgrade pip


Installing Dbus

$sudo apt install build-essential libdbus-glib-1-dev libgirepository1.0-dev
$pip install dbus-python



4. Build wpa_supplicant source code

$cd wpa_supplicant-2.9/wpa_supplicant

$cp defconfig .config

$cd ../


$make

Now you will be able to find out wpa_supplicant,wpa_supplicant_cli  and wpa_passphrase application binary 

Building hostapd application for Linux Platform

Building hostapd (Native Compilation)

Below are the Steps to build hostapd source code.

1. Download the hostapd latest release source code from below link 

https://w1.fi/hostapd/

2. Extract the hostapd source code using below command 

$tar -xzvf hostapd-2.9.tar.gz

3. install the dependent tools

Installing Net-link library

$sudo apt-get install libnl-genl-3-dev

Installing SSL library

$sudo apt-get install libssl-dev

4. Build hostapd source code 

$cd hostapd-2.9/hostapd

$cp defconfig .config

$cd ../

$make

 

Now you will be able to find out hostapd and hostapd_cli application binary