WPA-PSK for hostapd not working

chris janusz chrisjanusz007
Mon Jan 27 17:57:01 PST 2014


Hi all:
  I have my AP configured using Athero AR6003 chip, and hostapd 1.0, the AP
works fine without Authentication. The WEP mode works, but when i tried to
turn on WPA-PSK, it failed with incorrect password.

Here is my hostapd.conf

interface=wlan0
driver=nl80211
ssid=mdm9x15
channel=1

#WEP WPA and WPA2
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
wpa=3
wpa_passphrase=windowsxp
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
#rsn_pairwise=CCMP
macaddr_acl=0
ieee80211n=1
ieee8021x=0
wme_enabled=0

#log
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2

start hostapd with "/usr/sbin/hostapd /etc/hostapd.conf -dd", the log from
starting the daemon, associating with one client, and failed is in the
bottome of the email. occasionally i see these when starting the hostapd:

random: Cannot read from /dev/random: Resource temporarily unavailable
random: Got 0/4 bytes from /dev/random
random: Only 16/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool to proceed - reject first 4-way
handshake

But even above message didn't appear, it still failed "PTKSTART: Retry
limit 4 reached"

Any idea on what caused this?

Appreciate any help!

------ --- the log is too big to post, here is the relevant log, i think it
indicates the error--------------

i802_send_eapol - packet len: 131 - failed: 11 (Resource temporarily
unavailable)
WPA: Use EAPOL-Key timeout of 100 ms (retry counter 1)
wlan0: STA a4:4e:31:1a:1e:f8 WPA: EAPOL-Key timeout
WPA: a4:4e:31:1a:1e:f8 WPA_PTK entering state PTKSTART
wlan0: STA a4:4e:31:1a:1e:f8 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
nl80211: No monitor socket available for wpa_driver_nl80211_send_frame
i802_send_eapol - packet len: 131 - failed: 11 (Resource temporarily
unavailable)
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 2)
wlan0: STA a4:4e:31:1a:1e:f8 WPA: EAPOL-Key timeout
WPA: a4:4e:31:1a:1e:f8 WPA_PTK entering state PTKSTART
wlan0: STA a4:4e:31:1a:1e:f8 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
nl80211: No monitor socket available for wpa_driver_nl80211_send_frame
i802_send_eapol - packet len: 131 - failed: 11 (Resource temporarily
unavailable)
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 3)
wlan0: STA a4:4e:31:1a:1e:f8 WPA: EAPOL-Key timeout
WPA: a4:4e:31:1a:1e:f8 WPA_PTK entering state PTKSTART
wlan0: STA a4:4e:31:1a:1e:f8 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
nl80211: No monitor socket available for wpa_driver_nl80211_send_frame
i802_send_eapol - packet len: 131 - failed: 11 (Resource temporarily
unavailable)
WPA: Use EAPOL-Key timeout of 1000 ms (retry counter 4)
wlan0: STA a4:4e:31:1a:1e:f8 WPA: EAPOL-Key timeout
WPA: a4:4e:31:1a:1e:f8 WPA_PTK entering state PTKSTART
wlan0: STA a4:4e:31:1a:1e:f8 WPA: PTKSTART: Retry limit 4 reached
WPA: a4:4e:31:1a:1e:f8 WPA_PTK entering state DISCONNECT
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20140127/0af57c9e/attachment.htm>



More information about the Hostap mailing list