<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>&nbsp;hostapd *hapd = eloop_ctx;<BR>&nbsp;struct sta_info *sta = timeout_ctx;</P>
<P>&nbsp;if (!(sta-&gt;flags &amp; WLAN_STA_AUTH))<BR>&nbsp;&nbsp;return;</P>
<P>&nbsp;ieee802_11_send_deauth(hapd, sta-&gt;addr,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WLAN_REASON_PREV_AUTH_NOT_VALID);<BR>&nbsp;hostapd_logger(hapd, sta-&gt;addr, HOSTAPD_MODULE_IEEE80211,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HOSTAPD_LEVEL_INFO, "deauthenticated due to "<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "session timeout");<BR>&nbsp;sta-&gt;acct_terminate_cause =<BR>&nbsp;&nbsp;RADIUS_ACCT_TERMINATE_CAUSE_SESSION_TIMEOUT;<BR>&nbsp;&nbsp;<BR>//modify start&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sta-&gt;eapol_sm-&gt;auth_pae.eapLogoff = TRUE;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eapol_sm_step(sta-&gt;eapol_sm);<BR>//end modify</P>
<P>&nbsp;ap_free_sta(hapd, sta);<BR>}<BR>--------------------------------------------------------------------</P>
<P>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>Lee, Young Jae </DIV>
<DIV>Mobile:+82-16-409-0884</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;E-mail :&nbsp;<A href="mailto:airhank@imctech.ac">airhank@imctech.</A>ac.kr<BR>&nbsp;MSN Messenger ID :&nbsp;<A href="mailto:ykahn419@hotmail.com">airhank@hanmail.net</A>&nbsp;</FONT></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV><BR></DIV></DIV>