1. download from https://w1.fi

2. Latest release:

 

3. make  and make install 

maybe see some error ,  

fatal error: netlink/genl/genl.h: No such file or directory

 

==>

apt-get install libnl-3-dev

, add this line on .config from hostapd 

# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
CONFIG_LIBNL32=y

and other

# Wi-Fi Protected Setup (WPS)
CONFIG_WPS=y
# Enable UPnP support for external WPS Registrars
CONFIG_WPS_UPNP=y
# Enable WPS support with NFC config method
CONFIG_WPS_NFC=y

 

4. ok,  make  clean ,  then  make and make install  .

5. cp hostapd.conf ==> /etc/hostapd/

 

6. vi hostapd.conf

 

# WPS configuration - START
wps_state=2
ssid=abc-hostapd-456
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
wpa_passphrase=12345678
auth_algs=1
config_methods=label display push_button keypad

eap_server=1   ==> for WPS use internal server

interface=wlan2

 

 

7. hostapd hostapd.conf  

 

8.  hostapd_cli  

==> use  wps_pbc  or wps_pin  <uuid> <pin>   

 

 

 

 

refer :

https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf

http://askubuntu.com/questions/617973/fatal-error-netlink-genl-genl-h-no-such-file-or-directory

http://ftp.netbsd.org/pub/NetBSD/NetBSD-release-5/src/dist/wpa/hostapd/hostapd.conf

 

wpa_supplicant example

https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf

 http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/external/bsd/wpa/dist/wpa_supplicant/README-WPS

 

文章標籤
全站熱搜
創作者介紹
創作者 yves2005 的頭像
yves2005

YvEs2005

yves2005 發表在 痞客邦 留言(0) 人氣(1,733)