hostapd移植笔记

来源:互联网 发布:js是什么防水材料 编辑:程序博客网 时间:2024/05/22 06:41

第一步,下载hostapd-0.8
然后进入步骤
cd defconfig .config
vim .config
/***********************************************************************/
CONFIG_DRIVER_RTW=y
# Integrated EAP server
CONFIG_EAP=y
# Wi-Fi Protected Setup (WPS)
CONFIG_WPS=y
CONFIG_TLS=internal
CONFIG_INTERNAL_LIBTOMMATH=y
CONFIG_IEEE80211N=y


/***********************************************************************/
第一步,下载hostapd-0.8
然后进入步骤
cd defconfig .config
vim .config
再修改 Makefile 添加内容:
CFLAGS += -I../src
CFLAGS += -I../src/utils
/*******************************************************************************/
CFLAGS += -I/home/sonix_user/fu/test1/libnl-1.1/out/include/
CFLAGS += -I/home/sonix_user/fu/test1/openssl-1.0.1c/out/include/
LIBS += -L/home/sonix_user/fu/test1/libnl-1.1/out/lib/
LDFLAGS += -L/home/sonix_user/fu/test1/libnl-1.1/out/lib/
LIBS += -L/home/sonix_user/fu/test1/openssl-1.0.1c/out/lib/
LDFLAGS += -L/home/sonix_user/fu/test1/openssl-1.0.1c/out/lib/
/*******************************************************************************/
然后编译 生成 hostapd 可执行文件
当然如果 移植要改动 CC =arm-linux-gcc
配置 hostapd.conf 配置文件如下:
interface=wlan0
ctrl_interface=/var/run/hostapd
ssid=SN-WIFI
channel=2
wpa=2
wpa_passphrase=88888888
auth_algs=1
ignore_broadcast_ssid=0
eap_server=1


driver=rtl871xdrv
beacon_int=100
hw_mode=g
ieee80211n=1
wme_enabled=1
ht_capab=[SHORT-GI-20][SHORT-GI-40]
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
max_num_sta=8
wpa_group_rekey=86400





第一步,下载hostapd-0.8
然后进入步骤
cd defconfig .config
vim .config
再修改 Makefile 添加内容:
CFLAGS += -I../src
CFLAGS += -I../src/utils
/*******************************************************************************/
CFLAGS += -I/home/sonix_user/fu/test1/libnl-1.1/out/include/
CFLAGS += -I/home/sonix_user/fu/test1/openssl-1.0.1c/out/include/
LIBS += -L/home/sonix_user/fu/test1/libnl-1.1/out/lib/
LDFLAGS += -L/home/sonix_user/fu/test1/libnl-1.1/out/lib/
LIBS += -L/home/sonix_user/fu/test1/openssl-1.0.1c/out/lib/
LDFLAGS += -L/home/sonix_user/fu/test1/openssl-1.0.1c/out/lib/
/*******************************************************************************/
然后编译 生成 hostapd 可执行文件
当然如果 移植要改动 CC =arm-linux-gcc
配置 hostapd.conf 配置文件如下:
interface=wlan0
ctrl_interface=/var/run/hostapd
ssid=SN-WIFI
channel=2
wpa=2
wpa_passphrase=88888888
auth_algs=1
ignore_broadcast_ssid=0
eap_server=1


driver=rtl871xdrv
beacon_int=100
hw_mode=g
ieee80211n=1
wme_enabled=1
ht_capab=[SHORT-GI-20][SHORT-GI-40]
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
max_num_sta=8
wpa_group_rekey=86400





再修改 Makefile 添加内容:
CFLAGS += -I../src
CFLAGS += -I../src/utils
/*******************************************************************************/
CFLAGS += -I/home/sonix_user/fu/test1/libnl-1.1/out/include/
CFLAGS += -I/home/sonix_user/fu/test1/openssl-1.0.1c/out/include/
LIBS += -L/home/sonix_user/fu/test1/libnl-1.1/out/lib/
LDFLAGS += -L/home/sonix_user/fu/test1/libnl-1.1/out/lib/
LIBS += -L/home/sonix_user/fu/test1/openssl-1.0.1c/out/lib/
LDFLAGS += -L/home/sonix_user/fu/test1/openssl-1.0.1c/out/lib/
/*******************************************************************************/
然后编译 生成 hostapd 可执行文件
当然如果 移植要改动 CC =arm-linux-gcc
配置 hostapd.conf 配置文件如下:
interface=wlan0
ctrl_interface=/var/run/hostapd
ssid=SN-WIFI
channel=2
wpa=2
wpa_passphrase=88888888
auth_algs=1
ignore_broadcast_ssid=0
eap_server=1


driver=rtl871xdrv
beacon_int=100
hw_mode=g
ieee80211n=1
wme_enabled=1
ht_capab=[SHORT-GI-20][SHORT-GI-40]
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
max_num_sta=8
wpa_group_rekey=86400