<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>communication between EAP method and upper layers</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>I'm getting close to being able to release an alpha quality patch adding support for Protected Setup, but there are a couple of issues both related to communicating information between the EAP method and upper layers of the supplicant.<BR>
<BR>
1) The user starts WPS via a command to the control interface, and one of these commands is only valid for 2 minutes. The logical place to cancel this timer (set in wpa_supplicant_ctrl_iface_process) is in the EAP's INIT function, but I'm not seeing a way to get a reference to struct wpa_supplicant to pass into eloop_cancel_timeout. What is the best way to communicate this up from the EAP method? Shared variable in struct eap_sm?<BR>
<BR>
2) The EAP method can fail for different reasons (general error, overlapping sessions, etc). The WPA_EVENT_EAP_FAILURE message would let the cli or nm know that something failed, but is there an existing way for them to find out the specifics of the failure?<BR>
<BR>
TIA<BR>
<BR>
---chuck</FONT>
</P>
</BODY>
</HTML>