<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
and hansen schrieb:
<blockquote cite="mid20050604153846.93930.qmail@web51105.mail.yahoo.com"
 type="cite">
  <pre wrap="">Beat Meier wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hello again

Now it works ...

"Configuration":
  hostapd-0.4.1, wpa_supplicant-0.4.1
  madwifi-bsd-20050530
  openssl-0.9.7g

Notes:
hostapd-0.4.1
I had to change the .config file of hostapd  so it
can find the crypto 
lib of ssl.
This seems strange but it is a real problem if you
have 2 ssl 
installations!!
In fact this could be a problem for many peobles
because in wpa_supplicant you can configure which
ssl should be used
and in hostapd there is no comment ...
In hostapd the crypto lib of the system (/usr/lib)
was linked instead of 
the /usr/local/lib one.

It should be the same note in defconfig in hostapd
like in wpa_supplicant.

# Uncomment following two lines and fix the paths if
you have installed 
openssl
# in non-default location
#CFLAGS += -I/usr/local/openssl/include
#LIBS += -L/usr/local/openssl/lib

So I was able to use my NL-5354 MP PLUS ARIES2(F) 4G
chipset AR5112
at both end client and ap to connect with WPA-PSK.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Hello Beat Meier and others

more details please ;)
1 are you using madwifi-bsd in both ends ?

  </pre>
</blockquote>
Yes I'm using madwifi-bsd on both ends with kernel-2.4.30<br>
Hostapd if compiled on suse9.1 with kernel-2.4.30<br>
wpa_supplicant is compiled on debian-3.01r1 woody with kernel-2.4.30<br>
On both systems I have installed the sources hostapd-4.0.1 and
wpa_supplicant-4.0.1<br>
and configured the wpa_suuplicant in .config of hostapd i.e. compiling
include<br>
-I../wpa_supplicant-0.4.1<br>
Make shure your path is correct (ls path output of make from hostapd
compile dir!)<br>
The same I have done for wpa_supplicant .conf file with source dir of
hostapd.<br>
BTW: this is in CFLAGS entry in defconfig line 50 (wpa_supplicant-0.4.1)<br>
CFLAGS entry in defconfig line 20 /hostapd-0.4.1)<br>
I don't now if this must be done, but ...<br>
Importend is that you add the 2 lines mentioned about ssl in the
.config file of hostapd i.e.<br>
<pre wrap="">CFLAGS += -I/usr/local/openssl/include
LIBS += -L/usr/local/openssl/lib
</pre>
which MUST point to your openssl lib IF not using the default from the
system!<br>
<blockquote cite="mid20050604153846.93930.qmail@web51105.mail.yahoo.com"
 type="cite">
  <pre wrap="">2 have you removed the the openssl
  that were following you distribution,
  or have you just pointed out the openssl-0.9.7g
  source in the .config files ?

  </pre>
</blockquote>
I've deleted it because never worked and so I've noticed that the
linker complained about missing<br>
library. After patching .config like above it worked. I've installed
again the openssl lib<br>
<blockquote cite="mid20050604153846.93930.qmail@web51105.mail.yahoo.com"
 type="cite">
  <pre wrap="">3 are you using openssl-0.9.7g in both ends ?

  </pre>
</blockquote>
Yes<br>
<blockquote cite="mid20050604153846.93930.qmail@web51105.mail.yahoo.com"
 type="cite">
  <pre wrap="">4 on what kernels is your setup based ?

  </pre>
</blockquote>
Stock vanilla kernel 2.4.30<br>
<blockquote cite="mid20050604153846.93930.qmail@web51105.mail.yahoo.com"
 type="cite">
  <pre wrap="">i have tested this config
hostapd-0.4.1, wpa_supplicant-0.4.1
madwifi-bsd-2005(0603)
openssl-0.9.7g
but no luck here :(

  </pre>
</blockquote>
What authentication are you trying?<br>
WEP does not work in my case (with hostapd) but with ifconfig it works<br>
WPA works with hostapd<br>
Now I'm trying to go to EAP-TLS ...<br>
<br>
What if done on suse9.0 system<br>
Maybe you should move the ssl libs includedir to something else like I
did (you cannot delete it<br>
because ssh etc. needs this packages on the most distros so moving to
test is ok)<br>
Example:<br>
&nbsp;&nbsp; mv /usr/include /usr/include/openssl.delete<br>
&nbsp;cd /usr/lib;&nbsp; mkdir /usr/lib/delete;&nbsp; mv libss* libcrypto* delete<br>
<br>
When the path of your installed of ssl i.e. mostly<br>
/usr/local/lib<br>
is in the /etc/ld.so.conf<br>
file<br>
ssh etc. works still with the new lib IF you have the same release
number without suffix<br>
i.e. 0.9.7a versus 0.9.7g (I think) ...<br>
<br>
<br>
On debian I've removed debian ssl library package and have compiled
ssl, ssh by myself.<br>
<br>
<br>
NOTES: Have you tried to set radio card to one mode only i.e. for
example only 802.11g<br>
istead of auto on both sides?<br>
If you are using a firewall and set the ip adress of the interface you
must restart the firewall<br>
so that the rules are reloaded so the network is ok (ping etc.) but of
course nothing to to<br>
with wireless auth. <br>
Is using WPA-PSK how did you enter the pwd? I hade problems because the
ssid is in the pw<br>
of hostapd i.e.<br>
wpa_passphrase="secret_pw" in hostapd.conf<br>
and<br>
psk="secret_pw" in wpa_supplicant conf<br>
does not work!<br>
I've generated a pw with<br>
wpa_passphrase &lt;ssid&gt; &lt;passphrase&gt;<br>
and used this at both ends<br>
on hostapd now it is also psk="" stanza<br>
<br>
<br>
I had problem if I modifed some stuff and the interface were up.<br>
I start my hostapd like:<br>
<br>
******************<br>
DEVICE=ath0<br>
<br>
ifconfig $DEVICE down<br>
ifconfig $DEVICE 192.168.200.1<br>
iwpriv $DEVICE mode 1<br>
iwconfig $DEVICE channel 1<br>
iwconfig $DEVICE mode Master<br>
iwconfig $DEVICE<br>
<br>
stopFirewall<br>
startFirewall<br>
<br>
# Use this if you want WPA-PSK authentification<br>
hostapd -tdddd /etc/hostapd_WPA_PSK.conf<br>
******************<br>
<br>
<br>
Hope this helps a little bit.<br>
Here ends my knowlege of all ...<br>
<br>
Ok one more idea. Try first using WEP wihtout wpa_supplicant and
hostapd so you know<br>
that the madwifi driver is running ok at least at this level ...<br>
<br>
Greetings<br>
<br>
Beat<br>
<br>
<br>
<blockquote cite="mid20050604153846.93930.qmail@web51105.mail.yahoo.com"
 type="cite">
  <pre wrap="">Best Regards
Lasse Jensen



_______________________________________________
HostAP mailing list
<a class="moz-txt-link-abbreviated" href="mailto:HostAP@shmoo.com">HostAP@shmoo.com</a>
<a class="moz-txt-link-freetext" href="http://lists.shmoo.com/mailman/listinfo/hostap">http://lists.shmoo.com/mailman/listinfo/hostap</a>

  </pre>
</blockquote>
<br>
</body>
</html>