Hostapd + madwifi problem

kasp waters
Tue Sep 20 05:08:17 PDT 2005


Hello!

I'm trying to get up WPA for my wireless connection. First of all, I
couldn't compile Hostapd 0.3.9 because of following error:

/usr/local/src/hostapd-0.3.9# make
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o hostapd.o hostapd.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o eloop.o eloop.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o ieee802_1x.o ieee802_1x.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o eapol_sm.o eapol_sm.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o radius.o radius.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o md5.o md5.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o rc4.o rc4.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o common.o common.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o ieee802_11.o ieee802_11.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o config.o config.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o ieee802_11_auth.o ieee802_11_auth.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o accounting.o accounting.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o sta_info.o sta_info.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o radius_client.o radius_client.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o sha1.o sha1.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o wpa.o wpa.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o aes_wrap.o aes_wrap.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o ctrl_iface.o ctrl_iface.c
rm -f driver_conf.c
echo '/* THIS FILE AUTOMATICALLY GENERATED, DO NOT EDIT! */' \
                                        > driver_conf.c
echo '#include <stdlib.h>'                      >> driver_conf.c
echo '#include <stdio.h>'                       >> driver_conf.c
echo '#include <sys/types.h>'                   >> driver_conf.c
echo '#include <netinet/in.h>'                  >> driver_conf.c
echo '#include "hostapd.h"'                     >> driver_conf.c
echo '#include "driver.h"'                      >> driver_conf.c
echo "void madwifi_driver_register(void);"      >> driver_conf.c
echo 'void register_drivers(void) {'            >> driver_conf.c
echo "madwifi_driver_register();"               >> driver_conf.c
echo '}'                                        >> driver_conf.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o driver_conf.o driver_conf.c
gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. -I/opt/madwifi/madwifi -DCONFIG_DRIVER_MADWIFI   -c -o driver_madwifi.o driver_madwifi.c
In file included from driver_madwifi.c:27:
/opt/madwifi/madwifi/net80211/ieee80211_ioctl.h:254: error: `IEEE80211_CHAN_BYTES' undeclared here (not in a function)
/opt/madwifi/madwifi/net80211/ieee80211_ioctl.h:262: error: `IEEE80211_CHAN_MAX' undeclared here (not in a function)
/opt/madwifi/madwifi/net80211/ieee80211_ioctl.h:301: error: `IEEE80211_RATE_MAXSIZE' undeclared here (not in a function)
driver_madwifi.c: In function `madwifi_set_ieee8021x':
driver_madwifi.c:297: error: `IEEE80211_AUTH_AUTO' undeclared (first use in this function)
driver_madwifi.c:297: error: (Each undeclared identifier is reported only once
driver_madwifi.c:297: error: for each function it appears in.)
driver_madwifi.c:310: error: `IEEE80211_AUTH_WPA' undeclared (first use in this function)
driver_madwifi.c:310: error: `IEEE80211_AUTH_8021X' undeclared (first use in this function)
make: *** [driver_madwifi.o] Error 1

.config file was following:
CONFIG_DRIVER_MADWIFI=y
CFLAGS += -I/opt/madwifi/madwifi

Next I've tried to use Hostapd 0.4.4 version, it did compile
sucessful, but strange error appears:

./hostapd -dd /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
madwifi_set_iface_flags: dev_up=0
Using interface ath1 with hwaddr 00:01:24:70:32:a0 and ssid 'blabla'
madwifi_set_ieee8021x: enabled=1
madwifi_configure_wpa: group key cipher=1
ioctl[IEEE80211_IOCTL_SETPARAM]: Invalid argument
Unable to set group key cipher to 1
IEEE 802.1X initialization failed.
madwifi_set_privacy: enabled=0
madwifi_set_ieee8021x: enabled=0
madwifi_set_iface_flags: dev_up=0


Configuration file:

hostapd.conf
#Configuration for wpa-psk Security profile
interface=ath1                                                                                                                      
driver=madwifi                                                                                                                      
logger_syslog=0                                                                                                                     
logger_syslog_level=0                                                                                                               
logger_stdout=0                                                                                                                     
logger_stdout_level=0                                                                                                               
debug=0                                                                                                                             
dump_file=/tmp/hostapd.dump                                                                                                         
ssid=blabla
macaddr_acl=1                                                                                                                       
accept_mac_file=/etc/hostapd.accept                                                                                                 
wpa=1                                                                                                                               
wpa_psk_file=/etc/hostapd.wpa_psk                                                                                                   
wpa_key_mgmt=WPA-PSK                                                                                                                
wpa_pairwise=CCMP TKIP
wpa_group_rekey=600                                                                                                                 
wpa_gmk_rekey=86400  


Looks like it doesn't like "wpa=1". What to do? I've searched through
google for my errors without success :(

-- 
Best regards,
 kasp                          mailto:waters at inbox.lv






More information about the Hostap mailing list