wpa_supplicant: Code problem of selecting AP ?
Tran Thanh Dinh
dinh107 at yahoo.com
Fri Sep 15 11:13:51 EDT 2006
In my test, I set the ssid on hostapd is 8021X_test.
wpa_supplicant looks for a network called 8021X_test.
In the list of available network, 8021X_test is found
but this network is not considered to be the suitable
In order to find out the reason, I've just looked
into the code of wpa_supplicant. And here's the
In function wpa_supplicant_select_bss (events.c file)
There's a comparasion between the available network
ssid and the configured ssid (8021X_test)
memcmp(bss->ssid, ssid->ssid, bss->ssid_len)
using printf, I got value of these 2 ssids:
bss->ssid = 268744662
ssid->ssid = 268697984
It means the 2 network ssids are 8021X_test in text
but in u8, they are different, so the comparaison does
not return 0. Therefore, no suitable AP found.
Then I wonder if you ever got the same problem
please? how can I fix this problem please? should i
modify the code?
Thanks for your help,
--- Tran Thanh Dinh <dinh107 at yahoo.com> wrote:
> I want to test wpa_supplicant and hostapd. I've
> a Dlink DWL-G520 wireless card. I installed
> successfully madwifi and hostapd and the wireless
> seems to work fine in master mode. I created the
> bridge br0 between eth0 and ath0.
> For the test, I want to use the EAP integrated
> server and 802.1X with any EAP method. I choosed
> On the hostapd side, I added the following entry
> "md5" MD5 "md5"
> On the wpa_supplicant side, the conf file is
> And the communication doesnt seem to work. The log
> on hostap is: "Network is down" and it stucks here.
> wpa_supplicant can detect the 8021X_test network but
> it skips because of "no WPA/RSN IE"
> Could you please help me out to have it work
> In one of the previous question, someone already
> about the configuration of EAP integrated server but
> couldn't find a clear answer.
> If it can not work with MD5, then which method
> should I use please?
> Thanks a lot for any help,
> Best regards,
> Dinh Tran
> --- Atif Ikram <Atif.Ikram at jdsu.com> wrote:
> > If you guys are using xsupplicant for the
> > then it may not
> > work. I tried it and it did not whereas EAP-TLS
> > does work. Looks like
> > MD5 is broken on either xsupplicant or HostAP.
> > radius server was
> > not receiving password in its logs whereas it did
> > with radtest
> > executable.
> > Was anyone else able to get MD5 working on
> > xsupplicant ?
> > Atif
> > ________________________________
> > From: hostap-bounces+atif.ikram=jdsu.com at shmoo.com
[mailto:hostap-bounces+atif.ikram=jdsu.com at shmoo.com]
> > On Behalf Of
> > rajat.dudeja at tcs.com
> > Sent: Thursday, September 07, 2006 7:29 AM
> > To: chikh omar
> > Cc: hostap-bounces+rajat.dudeja=tcs.com at shmoo.com;
> > hostap at shmoo.com;
> > Jouni Malinen
> > Subject: Re: How to configure integrated EAP
> > with EAP-MD5
> > >Hello,
> > >can you please Help me (step-by step) how to
> > configure hostapd with an
> > integrated eap server
> > I even tried configuring it and find no success.
> > please help !
> > Regards,
> > Rajat
> > ForwardSourceID:NT0000236A
> > =====-----=====-----=====
> > Notice: The information contained in this e-mail
> > message and/or attachments to it may contain
> > confidential or privileged information. If you are
> > not the intended recipient, any dissemination,
> > review, distribution, printing or copying of the
> > information contained in this e-mail message
> > and/or attachments to it are strictly prohibited.
> > you have received this communication in error,
> > please notify us by reply e-mail or telephone and
> > immediately and permanently delete the message
> > and any attachments. Thank you
> > > _______________________________________________
> > HostAP mailing list
> > HostAP at shmoo.com
> > http://lists.shmoo.com/mailman/listinfo/hostap
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> HostAP mailing list
> HostAP at shmoo.com
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the HostAP