0
I am trying to configure wpa_supplicant with hostapd and am running into some issues. I am using eap-tls. Here is my configuration:
Hostapd has the following configuration:
interface=ap1-wlan1
driver=nl80211
ssid=simplewifi
wds_sta=1
hw_mode=g
channel=1
ap_isolate=1
eap_server=0
logger_syslog=-1
logger_syslog_level=0
ca_cert="/home/mranga/openssl/ca.crt"
server_cert="/home/mranga/openssl/server.crt"
private_key="/home/mranga/openssl/server.key"
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
The wpa_supplicant configuration is as follows:
ctrl_interface=/var/run/wpa_supplicant
network={
proto=RSN
auth_alg=OPEN
key_mgmt=IEEE8021X
identity="mranga@example.com"
scan_ssid=1
eapol_flags=3
ca_cert="/home/mranga/openssl/ca.crt"
client_cert="/home/mranga/openssl/client.crt"
private_key="/home/mranga/openssl/client.key"
}
I see the following in my wpa_supplicant logs:
sta1-wlan0: 0: 02:00:00:00:02:00 ssid='simplewifi' wpa_ie_len=0 rsn_ie_len=0 caps=0x401 level=-36 freq=2412
sta1-wlan0: allow for non-WPA IEEE 802.1X
sta1-wlan0: skip - privacy mismatch
sta1-wlan0: No suitable network found
For the hostapd I see the following in syslog
Sep 11 17:46:02 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 IEEE 802.11: deauthenticated
Sep 11 17:46:02 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 MLME: MLME-DEAUTHENTICATE.indication(02:00:00:00:00:00, 3)
Sep 11 17:46:02 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 MLME: MLME-DELETEKEYS.request(02:00:00:00:00:00)
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 IEEE 802.11: authentication OK (open system)
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 MLME: MLME-AUTHENTICATE.indication(02:00:00:00:00:00, OPEN_SYSTEM)
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 MLME: MLME-DELETEKEYS.request(02:00:00:00:00:00)
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 IEEE 802.11: authenticated
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 IEEE 802.11: association OK (aid 1)
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 IEEE 802.11: associated (aid 1)
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 MLME: MLME-ASSOCIATE.indication(02:00:00:00:00:00)
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 MLME: MLME-DELETEKEYS.request(02:00:00:00:00:00)
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 IEEE 802.11: binding station to interface 'ap1-wlan1'
Sep 11 17:46:37 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 RADIUS: starting accounting session 5CDE7E43DA2B5068
Sep 11 17:46:47 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 IEEE 802.11: deauthenticated
Sep 11 17:46:47 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 MLME: MLME-DEAUTHENTICATE.indication(02:00:00:00:00:00, 3)
Sep 11 17:46:47 mininet-wifi hostapd: ap1-wlan1: STA 02:00:00:00:00:00 MLME: MLME-DELETEKEYS.request(02:00:00:00:00:00)
I can't figure out what I have configured wrongly. Any help appreciated. Thanks.
Ranga