Hostapd and wpa_supplicant configuration

mohamed.chaari at orange-ftgroup.com mohamed.chaari at orange-ftgroup.com
Thu Aug 14 05:22:00 EDT 2008


Hello,
I want to use hostapd and wpa_supplicant to sercure the access to a
Network. I want to use WPA-EAP with EAP-PSK. I have installed hostapd in
the Access Point and wa_supplicant in te client laptop. I used these
configurations :

* The file .config of the hostapd :
_________________________________________
CONFIG_DRIVER_MADWIFI=y
CFLAG += -I/usr/......#path to madwifi src
CONFIG_EAP=y
CONFIG_EAP_PSK=y
CONFIG_RADIUS_SERVER=y
_________________________________________

* The file hostapd.conf :
_________________________________________
interface=ath1
driver=madwifi
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=test
ath_alg=1
ieee8021x=1
eapol_key_index_workaround=0
eap_server=1
own_ip_addr=10.0.0.20
nas_identifier=ap.example.com
auth_server_addr=127.0.0.1
auth_server_port=1812
auth_server_shared_secret=secret
radius_retry_primary_intervel=600
radius_server_auth_port=1812
wpa=1
wpa_key_management=WPA-EAP
wpa_pairwise=TKIP
_________________________________________

* The file .config of the wpa_supplicant :
_________________________________________
CONFIG_DRIVER_MADWIFI=y
CFLAG += -I/usr/......#path to madwifi src
CONFIG_IEEE8021X_EAPOL=y
CONFIG_EAP_PSK=y
CONFIG_CTRL_IFACE=y
CONFIG_BACKEND=file
CONFIG_PEERKEY=y
_________________________________________

* The file wpa_supplicant.conf of the :
_________________________________________

ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
	ssid="test"
	key_mgmt=WPA-EAP
	eap=psk
	identity="eap_psk_user"
	eap_psk=06b4be19da289f475aa46a33cb793029
	nai="eap_psk_user at example.com"
}
_________________________________________

When running hostapd, this message is shown :

_________________________________________
...
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
...
could not connect to kernel driver.
....
l2_packet_receive - recvfrom: Network is down
_________________________________________

And when running the wpa_supplicant, the hostapd show : 
_________________________________________
ath0: STA xx:xx:xx:xx:xx:xx IEE 802.11 associated
ath0: STA xx:xx:xx:xx:xx:xx IEE 802.1X authentication failed - EAP type:
0 (Unknown)
ath0: STA xx:xx:xx:xx:xx:xx IEE 802.1X Supplicant used different EAP
type: 1 (Identity)
_________________________________________

I want to know il my configuration is valid or not.
If it is valid, what is the problem? Is there a solution.

Thanks.
Moahmed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20080814/26667645/attachment.htm 


More information about the HostAP mailing list