<P><FONT size=2>Hi...</FONT></P>
<P><FONT size=2>I use the hostapd-0.1.0 and PCI type wireless module.</FONT></P>
<P><FONT size=2>I have some question about the hostapd Session timeout function</FONT></P>
<P><FONT size=2>I add function of sending EAP-Failure packet after session timeout operation...</FONT></P>
<P><FONT size=2>following source modify for EAP-failure packet..</FONT></P><FONT size=2>
<P><BR>sta_info.c<BR>--------------------------------------------------------------------<BR>void ap_handle_session_timer(void *eloop_ctx, void *timeout_ctx)<BR>{<BR> hostapd *hapd = eloop_ctx;<BR> struct sta_info *sta = timeout_ctx;</P>
<P> if (!(sta->flags & WLAN_STA_AUTH))<BR> return;</P>
<P> ieee802_11_send_deauth(hapd, sta->addr,<BR> WLAN_REASON_PREV_AUTH_NOT_VALID);<BR> hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,<BR> HOSTAPD_LEVEL_INFO, "deauthenticated due to "<BR> "session timeout");<BR> sta->acct_terminate_cause =<BR> RADIUS_ACCT_TERMINATE_CAUSE_SESSION_TIMEOUT;<BR> <BR>//modify start <BR> sta->eapol_sm->auth_pae.eapLogoff = TRUE;<BR> eapol_sm_step(sta->eapol_sm);<BR>//end modify</P>
<P> ap_free_sta(hapd, sta);<BR>}<BR>--------------------------------------------------------------------</P>
<P> </P>
<P><BR>I see the debug display </P>
<P>After session timeout <BR>----------------------------------------------------------------------<BR>IEEE 802.1X: 00:07:13:58:43:1d AUTH_PAE entering state DISCONNECTED<BR>IEEE 802.1X: Sending canned EAP packet FAILURE to 00:07:13:58:43:1d (identifier 2)<BR>IEEE 802.1X: 00:07:13:58:43:1d REAUTH_TIMER entering state INITIALIZE<BR>IEEE 802.1X: 00:07:13:58:43:1d AUTH_PAE entering state CONNECTING<BR>IEEE 802.1X: station 00:07:13:58:43:1d - new auth session, clearing State<BR>IEEE 802.1X: Sending EAP Request-Identity to 00:07:13:58:43:1d (identifier 3)<BR>IEEE 802.1X: 00:07:13:58:43:1d REAUTH_TIMER entering state INITIALIZE<BR>IEEE 802.1X: 00:07:13:58:43:1d REAUTH_TIMER entering state INITIALIZE<BR>Sending RADIUS message to accounting server<BR>DATA (TX callback) ACK<BR>DATA (TX callback) fail<BR>Received 20 bytes from RADIUS server<BR>Received RADIUS message</P>
<P>--------------------------------------------------------------------------</FONT></P>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">
<DIV> </DIV>
<DIV>Regards hank<BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">
<DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">
<DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">
<DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: ±¼¸²">
<DIV>================================================</DIV>
<DIV>ÀÌ ¿µ Àç</DIV>
<DIV> </DIV>
<DIV>Lee, Young Jae </DIV>
<DIV>Mobile:+82-16-409-0884</DIV>
<DIV> </DIV>
<DIV><FONT size=2> E-mail : <A href="mailto:airhank@imctech.ac">airhank@imctech.</A>ac.kr<BR> MSN Messenger ID : <A href="mailto:ykahn419@hotmail.com">airhank@hanmail.net</A> </FONT></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV><BR></DIV></DIV>