wpa_supplicant
下载地址:
下载链接:http://w1.fi/releases/
下载wpa_supplicant-2.8.tar.gz 建议使用2.8
先安装这些
sudo apt-get install bison
sudo apt-get install flex
sudo apt-get install libnl-genl-3-dev
libnl 3.5编译:
source /etc/profile
sudo apt-get install bison
sudo apt-get install flex
./configure CC=arm-himix100-linux-gcc --host=arm-himix100-linux- --prefix=/home/root2/work/other/libnl-3.5.0/bin
make
make install
还需要编译Openssl
wpa_supplicant编译:
# ./config的内容可以进行配置裁剪
cp defconfig .config
在Makefile文件里添加
CFLAGS += -I//home/root2/work/other/libnl-3.5.0/bin/include
LIBS += -L/home/root2/work/other/libnl-3.5.0/bin/lib
CFLAGS += -I/home/root2/work/other/openssl-1.1.1d/bin/include
LIBS += -L/home/root2/work/other/openssl-1.1.1d/bin/lib
在shell执行
make CC=arm-himix100-linux-gcc
会在目录下生成:wpa_supplicant 和 wpa_cli
hostapd(2.8)也是一样
来源:oschina
链接:https://my.oschina.net/u/343244/blog/4893405