wpa_supplicant: Code problem of selecting AP ?
Tran Thanh Dinh
dinh107
Fri Sep 15 08:13:51 PDT 2006
Hi,
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
one.
In order to find out the reason, I've just looked
into the code of wpa_supplicant. And here's the
problem:
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
wpa_ssid_txt(bss->ssid)=8021X_test
ssid->ssid = 268697984
wpa_ssid_txt(ssid->ssid)=8021X_test
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,
Best regards,
Dinh Tran
--- Tran Thanh Dinh <dinh107 at yahoo.com> wrote:
> Hi,
>
> I want to test wpa_supplicant and hostapd. I've
> just
> a Dlink DWL-G520 wireless card. I installed
> successfully madwifi and hostapd and the wireless
> card
> 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
> EAP-MD5.
>
> On the hostapd side, I added the following entry
> in
> hostapd.eap_user
> "md5" MD5 "md5"
>
> On the wpa_supplicant side, the conf file is
> network={
> ssid="802.1X_test"
> key_mgmt=IEEE8021X
> eap=MD5
> identity="md5"
> password="md5"
> }
>
> 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
> please?
> In one of the previous question, someone already
> asked
> about the configuration of EAP integrated server but
> I
> 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
> supplicant
> > 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.
> The
> > 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
> server
> > 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,
> use,
> > review, distribution, printing or copying of the
> > information contained in this e-mail message
> > and/or attachments to it are strictly prohibited.
> If
> >
> > 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
> http://mail.yahoo.com
> _______________________________________________
> 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
http://mail.yahoo.com
More information about the Hostap
mailing list