编译hostapd & wpa_supplicant
1.安装依赖
sudo apt-get install flex bison
sudo apt-get install libnl-genl-3-dev
sudo apt-get install libnl-3-dev
sudo apt-get install libssl-dev
sudo apt-get install pkg-config
sudo apt-get install libnl-route-3-dev
sudo apt-get install dbus
sudo apt-get install libdbus-1-dev
sudo apt-get install libsqlite3-dev
2.下载hostap
git clone git://w1.fi/srv/git/hostap.git
cd hostap/hostapd
3.修改配置文件
cp defconfig .config
vi .config
ONFIG_DRIVER_NL80211=y
make