Compile wpa_supplicant2.0 for IPNC

1 Download wpa_supplicant2.0

Download Page:
http://hostap.epitest.fi/wpa_supplicant/
Download URL:
http://hostap.epitest.fi/releases/wpa_supplicant-2.0.tar.gz

untar the compressed file:
# tar -zxvf wpa_supplicant-2.0.tar.gz


2 Build openssl for wpa_supplicant2.0

Download openssl-0.9.8d.tar.gz(version must be0.9.8d)

Download Page:
http://www.openssl.org/source/
Download URL:
http://www.openssl.org/source/openssl-0.9.8d.tar.gz

untar the compressed file:
# tar -zxvf openssl-0.9.8d.tar.gz
Patch the diff file
# cd openssl-0.9.8d
# patch -Np1 -i ../wpa_supplicant-2.0/patches/openssl-0.9.8d-tls-extensions.patc

the options '-Np1' is number '1',not letter 'l'

configure && make openssl

Configured as shared library
# ./config --prefix=`pwd`/build4wpa_supplicant2 --openssldir=`pwd`/build4wpa_supplicant2/ssl shared zlib-dynamic no-asm no-sse2
# vim Makefile
edit Makefile file :
L16: remove -march=pentium
L17: remove -march=pentium
L62: CC= arm_v5t_le-gcc
L63: remove build option -mcpu=pentium
L69: AR= arm_v5t_le-ar $(ARFLAGS) r
L70: RANLIB= arm_v5t_le-ranlib
L74: MAKEDEPPROG= arm_v5t_le-gcc

# make
# make install

3 Build wap_supplicant2.0

# cd wpa_supplicant-2.0
Create an initial configuration file for the build process.
Run the following command to create a build configuration file:
# cat > wpa_supplicant/.config << "EOF"
CFLAGS += -I../../openssl-0.9.8d/build4wpa_supplicant2/include
LIBS += -L../../openssl-0.9.8d/build4wpa_supplicant2/lib -lssl
CONFIG_DRIVER_HOSTAP=y
CONFIG_DRIVER_WEXT=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_TLS=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TTLS=y
CONFIG_EAP_FAST=y
CONFIG_EAP_GTC=y
CONFIG_EAP_OTP=y
CONFIG_EAP_PSK=y
CONFIG_EAP_PWD=y
CONFIG_EAP_PAX=y
CONFIG_EAP_LEAP=y
CONFIG_EAP_SAKE=y
CONFIG_PKCS12=y
CONFIG_SMARTCARD=y
CONFIG_CTRL_IFACE=udp-remote
CONFIG_NO_STDOUT_DEBUG=y
CONFIG_BACKEND=file
CONFIG_PEERKEY=y
CONFIG_TLS=openssl
CONFIG_IEEE80211R=y
CONFIG_IEEE80211N=y
CONFIG_AP=y
CONFIG_P2P=y
EOF
# cd wpa_supplicant/
# make clean
# make CC=arm_v5t_le-gcc



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值