<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=euc-kr">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Re:Extending HostAP to support WPA</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Thank you for your reply.</FONT>
</P>

<P><FONT SIZE=2>I have a card with STA firmware 1.7.4. After I read the reply,</FONT>
<BR><FONT SIZE=2>I tried some more tests, and got the right beacons.</FONT>
<BR><FONT SIZE=2>The first byte is the length IE, not frame type.</FONT>
<BR><FONT SIZE=2>I still don't know what the second byte means. But zero value</FONT>
<BR><FONT SIZE=2>of the second byte made tests successful.</FONT>
<BR><FONT SIZE=2>The rest 26 bytes from the third are WPA IE.</FONT>
<BR><FONT SIZE=2>My successful codes are something like followings.</FONT>
</P>

<P><FONT SIZE=2>char buf[28] = { 0x1a, 0x00, 0xdd, 0x18, ....}; // 0x1a==26</FONT>
<BR><FONT SIZE=2>local-&gt;func-&gt;set_rid(local-&gt;dev, HFA384X_RID_GENERICELEMENT, </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>&nbsp;&nbsp; buf, 28); </FONT>
</P>

<P><FONT SIZE=2>&gt; I have checked the codes you mentioned. </FONT>
<BR><FONT SIZE=2>&gt; And I think you can write the codes like this: </FONT>
<BR><FONT SIZE=2>&gt; char buf[26] = {0xdd, 0x18, ...} </FONT>
<BR><FONT SIZE=2>&gt; local-&gt;func-&gt;set_rid(local-&gt;dev, HFA384X_RID_GENERICELEMENT,buf, 26); </FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ~~~I think 26 </FONT>
<BR><FONT SIZE=2>&gt; should be (26+1)*2. I donot know about it exactly, pls just try it.^_^</FONT>
<BR><FONT SIZE=2>&gt; You need not to tell firmware about the frame type of WPA, because RID FC48 is </FONT>
<BR><FONT SIZE=2>&gt; just for WPA IE, firmware knew about it. I set IE in AP and sniffed frames, </FONT>
<BR><FONT SIZE=2>&gt; it's good.</FONT>
</P>

<P><FONT SIZE=2>&gt;&gt;char buf[28] = { 0x80, 0x00, 0xdd, 0x18, ....}; </FONT>
<BR><FONT SIZE=2>&gt;&gt;local-&gt;func-&gt;set_rid(local-&gt;dev, HFA384X_RID_GENERICELEMENT, </FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; buf, 28); </FONT>
<BR><FONT SIZE=2>&gt;&gt; </FONT>
<BR><FONT SIZE=2>&gt;&gt;The first byte of 'buf' is the frame type of beacon, and 26 bytes from </FONT>
<BR><FONT SIZE=2>&gt;&gt;the third to the end are WPA IE. </FONT>
<BR><FONT SIZE=2>&gt;&gt; </FONT>
<BR><FONT SIZE=2>&gt;&gt;I caught the beacon frame in the air, and saw the IE is attached. But </FONT>
<BR><FONT SIZE=2>&gt;&gt;102 meaningless bytes are attached in the trail also. </FONT>
<BR><FONT SIZE=2>&gt;&gt;I don't know the right procedures to configure IEs in management </FONT>
<BR><FONT SIZE=2>&gt;&gt;frames. I just tried, but it is not successful. </FONT>
<BR><FONT SIZE=2>&gt;&gt;I guess, if we know the right configuration procedures of f/w 1.7.x, </FONT>
<BR><FONT SIZE=2>&gt;&gt;we can make HostAP to support WPA.</FONT> 
</P>

</BODY>
</HTML>