Help:Can wpa_supplicant-0.3.8 work with Madwifi without openssl linked?
Sun Bon
bonsunny
Mon Jul 10 02:50:55 PDT 2006
Dear all,
These days I am porting the wpa-supplicant-0.3.8 on an embeded system which
is ARM cpu / linux 2.4.22/ Madwifi wireless driver.
I disabled all the EAP functions and didn't give the path to the openssl
header files and libs (Also compiler didn't ask me for that during make).
I hope to get sure that wpa_supplicant can work without openssl (tried) and
any advice about the failure I described below.
All the valid settings in the .config:
CONFIG_DRIVER_MADWIFI=y
CONFIG_DRIVER_WEXT=y
CONFIG_CTRL_IFACE=y
My wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=2
# Only WPA-PSK is used. Any valid cipher combination is accepted.
network={
ssid="test"
proto=WPA
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk=088dfee4e3e2464026f9943ce8fc2a22ce0523955e6d9165780ce119d9609f17
priority=5
}
After I insmod all the required modules including xauth.o, tkip.o, i run
the wpa_supplicant as below:
# ./wlanconfig tr create wlandev wifi0 wlanmode sta
tr0
# ifconfig tr0 192.168.2.23 up
# ./wpa_supplicant -i tr0 -c wpa_supplicant-hex.conf -B -w
Trying tioctl essid !!!!!!!!!!!!!!!!!!!!!!
o associate with SSID 'test'
Authentiioctl essid !!!!!!!!!!!!!!!!!!!!!!
cation with 00:00:00:00:00:00 timed out.
notes:
1. An AP called "test" with WPA TKIP enabled is nearby
2. WEP works well
Debug print:
# ./wpa_supplicant -i tr0 -c wpa_supplicant-hex.conf -dd
Initializing interface 'GPF: pid(64, <wpa_supplicant>) text_offset(0x1bda4)
(USE
R pc=91412de8 r0=91a6e348 r3=00000005 sp=9141fae4 lr=00000000)
tr0' conf 'wpa_supplicant-hex.conf' driver 'default'
Configuration file 'wpa_supplicant-hex.conf' ->
'/lib/modules/2.4.22/kernel/drivers/net/wpa_supplicant-hex.conf'
Reading configuration file '/lib/modules/2.4.22/kernel/drivers/
net/wpa_supplicant-hex.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
ap_scan=2
Priority group 5
id=0 ssid='test'
Daemonize..
Initializing interface (2) 'tr0'
Own MAC address: 00:03:7f:07:41:d3
wpa_driver_madwifi_set_wpa: enabled=1
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Using existing control interface directory.
SIGSEGV
#
Another question is: which verison of openssl is recommended to work with
wpa-supplicant-0.3.8. I've tried openssl-0.9.7g but stopped at
compiling:openssl used some functions that the my arm-gcc lib not declared
(some functions in ctype.h).
I just start to learn wpa_supplicant.Any help from you will be great
appreciated!
Thanks and Best regards!
Bonsunny
_________________________________________________________________
???? MSN Explorer: http://explorer.msn.com/lccn/
More information about the Hostap
mailing list