clients cann't connect when using hostapd

Pelusa Vali pelusitavali
Wed Mar 22 18:26:36 PST 2006


hi list, could any body try to help please?? i have this problem since many time ago, and this is my problem:
i can compile hostapd, but when type make install nothing happens, so copied hostapd.conf file in /etc/hostapd (i created this directory ), this is my .config file to compile:
CONFIG_DRIVER_HOSTAP=y
CONFIG_DRIVER_MADWIFI=y
CFLAGS += -I/usr/src/madwifi/
CONFIG_IAPP=y
CONFIG_RSN_PREAUTH=y
CONFIG_EAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_TLS=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_GTC=y
CONFIG_EAP_TTLS=y
CONFIG_PKCS12=y
CONFIG_IPV6=y
 
this is my hostapd.conf file:

interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=1
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=MYWLAN
macaddr_acl=0
auth_algs=1
wpa=1
wpa_passphrase=serveraccess
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

so i can use hostapd with this: hostapd -dd /etc/hostadp/hostapd.conf
 
buy my clients never can connect with my ap (by the way i use debian etch, kernel 2.6.15.6, madwifi-ng-r1475, hostapd-0.5.1), i mean they try, but never can connect successfully, never can get ip direction from dhcp nor nothing else, this is what hostapd shows when trying to connect a client:

WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
ath0: STA 00:0f:66:11:c1:96 WPA: invalid MIC in msg 2/4 of 4-Way Handshake
ath0: STA 00:0f:66:11:c1:96 WPA: EAPOL-Key timeout
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKSTART
ath0: STA 00:0f:66:11:c1:96 WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 0f 66 11 c1 96 00 0f 66 11 c1 97 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 02 c4 38 a2 52 0a 22 e3 d1 3d f4 34 de 05 83 87 b4 0a bf 1e e9 1e fb b5 b8 0a 90 80 5d 27 54 fe 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X: 125 bytes from 00:0f:66:11:c1:96
   IEEE 802.1X: version=1 type=3 length=121
ath0: STA 00:0f:66:11:c1:96 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
ath0: STA 00:0f:66:11:c1:96 WPA: invalid MIC in msg 2/4 of 4-Way Handshake
ath0: STA 00:0f:66:11:c1:96 WPA: EAPOL-Key timeout
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKSTART
ath0: STA 00:0f:66:11:c1:96 WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 0f 66 11 c1 96 00 0f 66 11 c1 97 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 03 c4 38 a2 52 0a 22 e3 d1 3d f4 34 de 05 83 87 b4 0a bf 1e e9 1e fb b5 b8 0a 90 80 5d 27 54 fe 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X: 125 bytes from 00:0f:66:11:c1:96
   IEEE 802.1X: version=1 type=3 length=121
ath0: STA 00:0f:66:11:c1:96 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
ath0: STA 00:0f:66:11:c1:96 WPA: invalid MIC in msg 2/4 of 4-Way Handshake
ath0: STA 00:0f:66:11:c1:96 WPA: EAPOL-Key timeout
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKSTART
ath0: STA 00:0f:66:11:c1:96 WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 0f 66 11 c1 96 00 0f 66 11 c1 97 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 04 c4 38 a2 52 0a 22 e3 d1 3d f4 34 de 05 83 87 b4 0a bf 1e e9 1e fb b5 b8 0a 90 80 5d 27 54 fe 4b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:0f:66:11:c1:96 reason 2
madwifi_sta_deauth: addr=00:0f:66:11:c1:96 reason_code=2
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state DISCONNECTED
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:0f:66:11:c1:96 key_idx=0
ioctl[unknown???]: Invalid argument
ath0: STA 00:0f:66:11:c1:96 IEEE 802.1X: unauthorizing port
madwifi_set_sta_authorized: addr=00:0f:66:11:c1:96 authorized=0
ioctl[unknown???]: Invalid argument
ath0: STA 00:0f:66:11:c1:96 IEEE 802.11: deauthenticated due to local deauth request
Wireless event: cmd=0x8c04 len=20
ath0: STA 00:0f:66:11:c1:96 IEEE 802.11: deassociated
Wireless event: cmd=0x8c03 len=20
ath0: STA 00:0f:66:11:c1:96 IEEE 802.11: associated
  New STA
ath0: STA 00:0f:66:11:c1:96 WPA: event 1 notification
madwifi_del_key: addr=00:0f:66:11:c1:96 key_idx=0
ath0: STA 00:0f:66:11:c1:96 WPA: start authentication
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:0f:66:11:c1:96 key_idx=0
ath0: STA 00:0f:66:11:c1:96 IEEE 802.1X: unauthorizing port
madwifi_set_sta_authorized: addr=00:0f:66:11:c1:96 authorized=0
WPA: 00:0f:66:11:c1:96 WPA_PTK_GROUP entering state IDLE
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state AUTHENTICATION
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state AUTHENTICATION2
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state INITPSK
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKSTART
ath0: STA 00:0f:66:11:c1:96 WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 0f 66 11 c1 96 00 0f 66 11 c1 97 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 c4 38 a2 52 0a 22 e3 d1 3d f4 34 de 05 83 87 b4 0a bf 1e e9 1e fb b5 b8 0a 90 80 5d 27 54 fe 4c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X: 125 bytes from 00:0f:66:11:c1:96
   IEEE 802.1X: version=1 type=3 length=121
ath0: STA 00:0f:66:11:c1:96 WPA: received EAPOL-Key 2/4 Pairwise with unexpected replay counter
expected replay counter - hexdump(len=8): 00 00 00 00 00 00 00 01
received replay counter - hexdump(len=8): 00 00 00 00 00 00 00 04
IEEE 802.1X: 5 bytes from 00:0f:66:11:c1:96
   IEEE 802.1X: version=1 type=1 length=0
   ignoring 1 extra octets after IEEE 802.1X packet
IEEE 802.1X: 125 bytes from 00:0f:66:11:c1:96
   IEEE 802.1X: version=1 type=3 length=121
ath0: STA 00:0f:66:11:c1:96 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
ath0: STA 00:0f:66:11:c1:96 WPA: invalid MIC in msg 2/4 of 4-Way Handshake
ath0: STA 00:0f:66:11:c1:96 WPA: EAPOL-Key timeout
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKSTART
ath0: STA 00:0f:66:11:c1:96 WPA: sending 1/4 msg of 4-Way Handshake
TX EAPOL - hexdump(len=113): 00 0f 66 11 c1 96 00 0f 66 11 c1 97 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 02 c4 38 a2 52 0a 22 e3 d1 3d f4 34 de 05 83 87 b4 0a bf 1e e9 1e fb b5 b8 0a 90 80 5d 27 54 fe 4c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X: 125 bytes from 00:0f:66:11:c1:96
   IEEE 802.1X: version=1 type=3 length=121
ath0: STA 00:0f:66:11:c1:96 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
ath0: STA 00:0f:66:11:c1:96 WPA: invalid MIC in msg 2/4 of 4-Way Handshake

i want first wpa-psk just for testing purposes, to see if madwifi and hostapd can really talk each other. and as you can see, it's impossible, i guess is some error with my system or maybe with debian??

so, could you try to guess what is wrong and if is possible to solve it in some way??

thanks.


_______________________________________________________________ 
Which planet radiates more energy than it receives from the sun?

postmaster.co.uk
http://www.postmaster.co.uk/cgi-bin/meme/quiz.pl?id=190





More information about the Hostap mailing list