Using HostAP in WPA mode.

Takehiro Suzuki t-suzuki
Fri Jun 10 00:50:59 PDT 2005


Hi,

This is my first post to this mailing list. 

Now, I am having trouble with connecting STA(wpa_supplicant) to HostAP in 
WPA mode(WPA-PSK and WPA-RADIUS). 

Please tell me the information to connect STA and HostAP in WPA mode!


The following is the action in WPA-RADIUS(Autnetication Type is EAP-TLS).
STA associated to HostAP and sent a "EAPOL START" frame to HostAP.
HostAP didn't react EAPOL START frame from STA.(Orginally, HostAP should send Req-Identity to STA.)
As a result, EAP Authentication became time-out and STA deassociated from HostAP finally.

On the other hand, I can connect STA(wpa_supplicant) to the general AP(NEC) in 
WPA mode(WPA-PSK and WPA-RADIUS). I think STA(wpa_supplicant)'s configuration is right. 

The details of setting are as follow.

?STA : Linux 2.4.28 + madwifi(ver1.29) + wpa_supplicant(Ver0.3.8)
?AP  : Linux 2.4.26 + madwifi(ver1.29) + hostapd(Ver0.3.7)

hostapd.conf (? is used for security.)
---
?interface=ath0
?bridge=br0
  driver=madwifi
  logger_syslog=-1
  logger_syslog_level=2
  logger_stdout=-1
  logger_stdout_level=2
  debug=4
  dump_file=/tmp/hostapd.dump
  ssid=wpa-test
  ieee8021x=1
  own_ip_addr=?.?.?.?
?auth_server_addr=?.?.?.?
?auth_server_port=1812
?auth_server_shared_secret=???
?wpa=1
?wpa_key_mgmt=WPA-EAP
?wpa_pairwise=TKIP
?wpa_group_rekey=600
?wpa_gmk_rekey=86400
---

Debug message in HostAP is as follow.
---
adwifi_set_ieee8021x: enabled=1
madwifi_configure_wpa: group key cipher=1
madwifi_configure_wpa: pairwise key ciphers=0x2
madwifi_configure_wpa: key management algorithms=0x1
madwifi_configure_wpa: rsn capabilities=0x0
madwifi_configure_wpa: enable WPA= 0x1
madwifi_set_iface_flags: dev_up=1
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3
IEEE 802.1X: New default WEP key index 2
IEEE 802.1X: New default WEP key - hexdump(len=5): 6b 3e d2 3b 94
madwifi_set_key: alg=WEP addr=00:00:00:00:00:00 key_idx=2
madwifi_set_privacy: enabled=1
WPA: group state machine entering state GTK_INIT
GMK - hexdump(len=32): 5c 9e 3e 52 5b 74 37 9d 50 37 25 00 90 34 7b 7b 9f e1 ca 8a 36 42 b4 b4 2a a9 25 08 92 a3 cb 8c
GTK - hexdump(len=32): 63 87 ae 71 d9 90 b4 7d 75 94 7c 31 fa ca 95 74 e1 9e 89 b4 c9 1f 3f 3e a6 9a 39 99 34 33 31 0f
WPA: group state machine entering state SETKEYSDONE
madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1
Flushing old station entries
Deauthenticate all stations
Wireless event: cmd=0x8b19 len=12
Wireless event: cmd=0x8c03 len=20
ath0: STA 00:90:cc:0f:48:4a IEEE 802.11: associated
  New STA
ath0: STA 00:90:cc:0f:48:4a WPA: event 1 notification
ath0: STA 00:90:cc:0f:48:4a IEEE 802.1X: start authentication
IEEE 802.1X: 00:90:cc:0f:48:4a AUTH_PAE entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a BE_AUTH entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a AUTH_KEY_TX entering state NO_KEY_TRANSMIT
IEEE 802.1X: 00:90:cc:0f:48:4a KEY_RX entering state NO_KEY_RECEIVE
IEEE 802.1X: 00:90:cc:0f:48:4a CTRL_DIR entering state IN_OR_BOTH
IEEE 802.1X: 00:90:cc:0f:48:4a AUTH_PAE entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a BE_AUTH entering state IDLE
IEEE 802.1X: 00:90:cc:0f:48:4a KEY_RX entering state NO_KEY_RECEIVE
IEEE 802.1X: 00:90:cc:0f:48:4a CTRL_DIR entering state FORCE_BOTH
IEEE 802.1X: 00:90:cc:0f:48:4a AUTH_PAE entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a KEY_RX entering state NO_KEY_RECEIVE
ath0: STA 00:90:cc:0f:48:4a WPA: start authentication
WPA: 00:90:cc:0f:48:4a WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:90:cc:0f:48:4a key_idx=0
WPA: 00:90:cc:0f:48:4a WPA_PTK_GROUP entering state IDLE
WPA: 00:90:cc:0f:48:4a WPA_PTK entering state AUTHENTICATION
WPA: 00:90:cc:0f:48:4a WPA_PTK entering state AUTHENTICATION2
IEEE 802.1X: 00:90:cc:0f:48:4a Port Timers TICK (timers: 0 0 3599)
IEEE 802.1X: 00:90:cc:0f:48:4a AUTH_PAE entering state DISCONNECTED
ath0: STA 00:90:cc:0f:48:4a IEEE 802.1X: unauthorizing port
madwifi_set_sta_authorized: addr=00:90:cc:0f:48:4a authorized=0
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a AUTH_PAE entering state RESTART
IEEE 802.1X: station 00:90:cc:0f:48:4a - new auth session, clearing State
IEEE 802.1X: Generated EAP Request-Identity for 00:90:cc:0f:48:4a (identifier 0, timeout 30)
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a AUTH_PAE entering state CONNECTING
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a AUTH_PAE entering state AUTHENTICATING
IEEE 802.1X: 00:90:cc:0f:48:4a BE_AUTH entering state REQUEST
IEEE 802.1X: Sending EAP Packet to 00:90:cc:0f:48:4a (identifier 0)
TX EAPOL - hexdump(len=23): 00 90 cc 0f 48 4a 00 90 cc 0f 21 10 88 8e 02 00 00 05 01 00 00 05 01
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a Port Timers TICK (timers: 0 0 3599)
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a Port Timers TICK (timers: 0 0 3599)
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a Port Timers TICK (timers: 0 0 3599)
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a Port Timers TICK (timers: 0 0 3599)
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a Port Timers TICK (timers: 0 0 3599)
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a Port Timers TICK (timers: 0 0 3599)
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a Port Timers TICK (timers: 0 0 3599)
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:90:cc:0f:48:4a Port Timers TICK (timers: 0 0 3599)
IEEE 802.1X: 00:90:cc:0f:48:4a REAUTH_TIMER entering state INITIALIZE
Wireless event: cmd=0x8c04 len=20
ath0: STA 00:90:cc:0f:48:4a IEEE 802.11: deassociated

Regards,
Takehiro

 




More information about the Hostap mailing list