<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi, Jouni Malinen,<BR>
Thank you for&nbsp;your reply.<BR>
Now, I have pass the whole process of eap-aka with hostapd, and the MAC&nbsp;error is because of the&nbsp;error username I filled.<BR>
but&nbsp;I have work around a problem to pass the test.&nbsp; so I have to debug it and need your help. I will explain as following:<BR>
*******************************************************************************<BR>
the first step of send identity to server, but in eap_aka_determine_identity() of hostapd, I used the permanent identity with '0' prefix.<BR>
it&nbsp;would said&nbsp;permanent user name not know, and will send identity request to peer again.<BR>
<FONT color=#ff0000>I found the return value of </FONT><FONT color=#ff0000>eap_sim_db_identity_known() is -1 forever if permanent identity used. </FONT><FONT color=#ff0000>I don't know why?</FONT><BR>
<FONT color=#ff0000>And what the meaning of 'before_identity'? I found the value is set 0 when process identity response from peer again.</FONT><BR>
if (identity == NULL ||<BR>&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#ff0000>eap_sim_db_identity_known</FONT>(sm-&gt;eap_sim_db_priv, sm-&gt;identity,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sm-&gt;identity_len) &lt; 0) {<BR>&nbsp;&nbsp;if (<FONT color=#ff0000>before_identity</FONT>) {<BR>&nbsp;&nbsp;&nbsp;wpa_printf(MSG_DEBUG, "EAP-AKA: Permanent user name "<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "not known - send AKA-Identity request");&nbsp;<BR>&nbsp;&nbsp;&nbsp;eap_aka_state(data, IDENTITY);<BR>&nbsp;&nbsp;&nbsp;return;<BR>&nbsp;&nbsp;} else {<BR>&nbsp;&nbsp;&nbsp;wpa_printf(MSG_DEBUG, "EAP-AKA: Unknown whether the "<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "permanent user name is known; try to use "<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "it");<BR>&nbsp;&nbsp;&nbsp;/* eap_sim_db_get_aka_auth() will report failure, if<BR>&nbsp;&nbsp;&nbsp; * this identity is not known. */<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>
&nbsp;<BR>
&nbsp;<BR>
Thanks.<BR>
&nbsp;<BR>
Yan<BR>&nbsp;<BR>
&nbsp;<BR>
&gt; Date: Mon, 21 Feb 2011 21:34:36 +0200<BR>&gt; From: j@w1.fi<BR>&gt; To: hostap@lists.shmoo.com<BR>&gt; Subject: Re: About eap-aka test with hostapd<BR>&gt; <BR>&gt; On Thu, Feb 17, 2011 at 09:54:38AM +0000, Ñå ÕÅ wrote:<BR>&gt; <BR>&gt; &gt; 1. the supplicant i used is Xsupplicant, I found that the xsupplicant didn't support with eap-aka in the eap_testing.txt. Is it means the hostapd is not supported to work with xsupplicant for eap-aka?<BR>&gt; <BR>&gt; It means that I have not tested this combination. Though, I would expect<BR>&gt; it to work.<BR>&gt; <BR>&gt; &gt; 2. Now,the parameters filled in the hlr_auc_gw.milenage_db are same as the parameters in Xsupplicant side, Is it right? I found the SQN of milenage_db is increasing.<BR>&gt; <BR>&gt; I do not know how to configure this type of test mode for Xsupplicant.<BR>&gt; <BR>&gt; -- <BR>&gt; Jouni Malinen PGP id EFC895FA<BR>&gt; _______________________________________________<BR>&gt; HostAP mailing list<BR>&gt; HostA
 P@lists.shmoo.com<BR>&gt; http://lists.shmoo.com/mailman/listinfo/hostap<BR>                                               </body>
</html>