wpa_supplicant in ad hoc mode

Benoit PAPILLAULT benoit.papillault
Tue Jan 2 09:41:53 PST 2007


Jouni Malinen wrote:
> On Fri, Dec 29, 2006 at 12:21:20PM +0100, Stefano Paris wrote:
> 
>> I'm also interested in developing IEEE 802.11i in IBSS mode, but I didn't find the test_wpa.c file in tests directory. Maybe the file is eapol_test.c, isn't it?
> 
> No, this has nothing to do with eapol_test.c. Which version of
> wpa_supplicant did you look at? This code is only available in the
> latest 0.6.x snapshots.
> 

Correct. I managed to compile the test_wpa program using the following
instructions (not so easy in fact). However, I don't know how to move to
a full implementation of 802.11i IBSS from there (ie, connecting to real
"wext" backend and so on ... ). Suggestions are welcome.

Compiling test_wpa:
-------------------
* I downloaded wpa_supplicant-0.6-2006-12-28.tar.gz and
hostapd-0.6-2006-12-28.tar.gz
* I uncompressed both and move hostap-0.6-2006-12-28 to
wpa_supplicant-0.6-2006-12-28/hostpad since both "libraries" are needed
to compile the test program
* Now, I discover that some functions/variables are redundant between
both libraries and that a common library could help (i created a "lib"
directory, just for the sake of compiling).
* As such, I patched "hostapd" and "wpa_supplicant" with the patches
attached to this mail.
* I then just did "make test_wpa"
* I run the resulting test_wpa (output is attached in test_wpa.txt as well).

Best regards,
Benoit
PS: I can port those patches to the latest development releases if
needed to accept those patches in the main tree (or at least discuss
them, since i'm no expert here and some stuff have been hardcoded).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_wpa.txt.gz
Type: application/x-gzip
Size: 2049 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20070102/d9fdec7a/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hostapd-0.6-2006-12-28-bpa.diff.gz
Type: application/x-gzip
Size: 2015 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20070102/d9fdec7a/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wpa_supplicant-0.6-2006-12-28-bpa.diff.gz
Type: application/x-gzip
Size: 2445 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20070102/d9fdec7a/attachment-0002.bin 



More information about the Hostap mailing list