Client can't authenticate

Ervin Hegedüs airween
Sat Mar 6 06:04:51 PST 2010


Hello everyone,

I have a Linux box with hostapd, I have used it since 2 weeks, but
today my client can't connect.
Here is my config:

interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=HSHNET
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
wpa=3
wpa_psk_file=/etc/hostapd/wpa_psk
wpa_key_mgmt=WPA-PSK
channel=9
hw_mode=g
wpa_pairwise=TKIP
wme_enabled=0

/etc/hostapd/wpa_psk:
00:00:00:00:00:00 MYPASS

hostapd -ddd /etc/hostapd/hostapd.conf gives these lines:

Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
Opening raw packet socket for ifindex -1216307212
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
...
Allowed channel: mode=0 chan=13 freq=2472 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x2
...
RATE[11] rate=540 flags=0x0
Passive scanning not supported
Flushing old station entries
Deauthenticate all stations
Mode: IEEE 802.11g  Channel: 9  Frequency: 2452 MHz
Using interface wlan0 with hwaddr 00:26:5a:83:37:97 and ssid 'HSHNET'
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wlan0: Setup of interface done.
MGMT (TX callback) ACK
STA 00:25:d0:8a:18:7e sent probe request for broadcast SSID
MGMT (TX callback) ACK
mgmt::proberesp cb
...
STA 00:25:d0:8a:18:7e sent probe request for our SSID
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT
mgmt::auth
authentication: STA=00:25:d0:8a:18:7e auth_alg=0 auth_transaction=1
status_code=0 wep=0
  New STA
wlan0: STA 00:25:d0:8a:18:7e IEEE 802.11: authentication OK (open system)
wlan0: STA 00:25:d0:8a:18:7e MLME:
MLME-AUTHENTICATE.indication(00:25:d0:8a:18:7e, OPEN_SYSTEM)
wlan0: STA 00:25:d0:8a:18:7e MLME: MLME-DELETEKEYS.request(00:25:d0:8a:18:7e)
authentication reply: STA=00:25:d0:8a:18:7e auth_alg=0
auth_transaction=2 resp=0 (IE len=0)
MGMT (TX callback) ACK
mgmt::auth cb
wlan0: STA 00:25:d0:8a:18:7e IEEE 802.11: authenticated
MGMT
mgmt::assoc_req
association request: STA=00:25:d0:8a:18:7e capab_info=0x411 listen_interval=20
  new AID 1
wlan0: STA 00:25:d0:8a:18:7e IEEE 802.11: association OK (aid 1)
MGMT (TX callback) ACK
mgmt::assoc_resp cb
wlan0: STA 00:25:d0:8a:18:7e IEEE 802.11: associated (aid 1)
wlan0: STA 00:25:d0:8a:18:7e MLME: MLME-ASSOCIATE.indication(00:25:d0:8a:18:7e)
wlan0: STA 00:25:d0:8a:18:7e MLME: MLME-DELETEKEYS.request(00:25:d0:8a:18:7e)
wlan0: STA 00:25:d0:8a:18:7e WPA: event 1 notification
wlan0: STA 00:25:d0:8a:18:7e WPA: start authentication
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state INITIALIZE
wlan0: STA 00:25:d0:8a:18:7e IEEE 802.1X: unauthorizing port
WPA: 00:25:d0:8a:18:7e WPA_PTK_GROUP entering state IDLE
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state AUTHENTICATION
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state AUTHENTICATION2
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state INITPSK
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state PTKSTART
wlan0: STA 00:25:d0:8a:18:7e WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
IEEE 802.1X: 00:25:d0:8a:18:7e TX status - version=2 type=3 length=95 - ack=1
wlan0: STA 00:25:d0:8a:18:7e WPA: EAPOL-Key timeout
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state PTKSTART
wlan0: STA 00:25:d0:8a:18:7e WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
IEEE 802.1X: 00:25:d0:8a:18:7e TX status - version=2 type=3 length=95 - ack=1
wlan0: STA 00:25:d0:8a:18:7e WPA: EAPOL-Key timeout
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state PTKSTART
wlan0: STA 00:25:d0:8a:18:7e WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
IEEE 802.1X: 00:25:d0:8a:18:7e TX status - version=2 type=3 length=95 - ack=1
wlan0: STA 00:25:d0:8a:18:7e WPA: EAPOL-Key timeout
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state PTKSTART
wlan0: STA 00:25:d0:8a:18:7e WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
IEEE 802.1X: 00:25:d0:8a:18:7e TX status - version=2 type=3 length=95 - ack=1
wlan0: STA 00:25:d0:8a:18:7e WPA: EAPOL-Key timeout
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state PTKSTART
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect:
STA 00:25:d0:8a:18:7e reason 2
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state DISCONNECTED
WPA: 00:25:d0:8a:18:7e WPA_PTK entering state INITIALIZE
wlan0: STA 00:25:d0:8a:18:7e IEEE 802.1X: unauthorizing port
wlan0: STA 00:25:d0:8a:18:7e IEEE 802.11: deauthenticated due to local
deauth request
MGMT (TX callback) ACK
STA 00:25:d0:8a:18:7e sent probe request for our SSID


any my client (which is a Nokia phone, uses hungarian language) said
(in free translation):
Can't connect to Ap: invalid WPA key.

But (without I touched client config) sometimes it canbe connected -
then when I disconnect the client,
SSID isn't visible until I restart hostapd. I can't reproduce exactly
this effect...


Thank you for your help:

a.



More information about the Hostap mailing list