Thanks Jouni and Shy<br><br>Baozhong<br>
<br><br><div class="gmail_quote">2010/8/30 Jouni Malinen <span dir="ltr">&lt;<a href="mailto:j@w1.fi" target="_blank">j@w1.fi</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<div>On Mon, Aug 30, 2010 at 11:18:56AM +0800, BaoZhong ZHENG wrote:<br>
<br>
&gt; I am working on Android platform, due to there is no library which<br>
&gt; encapsulates SIM card operations such as GSM auth and AKA auth interface, so<br>
&gt; I want to change the SIM operations from sync API call to Async message<br>
&gt; flow, I means when need to do GSM auth, wpa_supplicant sends one message to<br>
&gt; some component which can trigger GSM auth operation, and it will response<br>
&gt; the result to wpa_supplicant.<br>
<br>
</div>There seems to be some work going on in getting pcsc-lite working fine<br>
with Android. I don&#39;t no how far that is, but just to point out that<br>
there may be other alternatives for this..<br>
<div><br>
&gt; The current point is when I try to break eap_sim_process_challenge func<br>
&gt; after send GSM Auth request and return, when results come, I do not find the<br>
&gt; way into eap_sim_process_challenge func with GSM Auth results.<br>
<br>
</div>wpa_supplicant does not support this in the current EAP peer state<br>
machine design. There is somewhat similar functionality in hostapd for<br>
EAP server where EAP-SIM or EAP-AKA authentication data is fetched<br>
asynchronously. That is somewhat of a hack, but something similar could<br>
work with the EAP peer side, too. Alternatively, the EAP peer method API<br>
would need to be extended to allow asynchronous operations (with<br>
potentially changing all existing EAP peer method implementations or<br>
probably preferably, by adding an optional callback function that avoids<br>
this).<br>
<font color="#888888"><br>
--<br>
Jouni Malinen                                            PGP id EFC895FA<br>
_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com" target="_blank">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</font></blockquote></div><br>