madwifi and hostapd persistent error

Pelusa Vali pelusitavali at postmaster.co.uk
Wed Mar 15 17:27:49 EST 2006


hi people, well after many tries finally i must say i cann't compile hostapd, always get this:
 
driver_madwifi.c:21:28: warning: include/compat.h: No such file or directory
driver_madwifi.c:22:32: warning: net80211/ieee80211.h: No such file or directory
driver_madwifi.c:28:39: warning: net80211/ieee80211_crypto.h: No such file or di rectory
driver_madwifi.c:29:38: warning: net80211/ieee80211_ioctl.h: No such file or dir ectory
driver_madwifi.c: In function `set80211priv':
driver_madwifi.c:124: error: `IEEE80211_IOCTL_SETPARAM' undeclared (first use in  this function)
driver_madwifi.c:124: error: (Each undeclared identifier is reported only once
driver_madwifi.c:124: error: for each function it appears in.)
driver_madwifi.c:125: error: `IEEE80211_IOCTL_CHANLIST' undeclared (first use in  this function)
driver_madwifi.c: In function `set80211param':
driver_madwifi.c:167: error: `IEEE80211_IOCTL_SETPARAM' undeclared (first use in  this function)
driver_madwifi.c: In function `madwifi_configure_wpa':
driver_madwifi.c:198: error: `IEEE80211_CIPHER_AES_CCM' undeclared (first use in  this function)
driver_madwifi.c:201: error: `IEEE80211_CIPHER_TKIP' undeclared (first use in th is function)
driver_madwifi.c:204: error: `IEEE80211_CIPHER_WEP' undeclared (first use in thi s function)
driver_madwifi.c:210: error: `IEEE80211_CIPHER_NONE' undeclared (first use in th is function)
driver_madwifi.c:219: error: `IEEE80211_PARAM_MCASTCIPHER' undeclared (first use  in this function)
driver_madwifi.c:226: error: `IEEE80211_PARAM_MCASTKEYLEN' undeclared (first use  in this function)
driver_madwifi.c:241: error: `IEEE80211_PARAM_UCASTCIPHERS' undeclared (first us e in this function)
driver_madwifi.c:249: error: `IEEE80211_PARAM_KEYMGTALGS' undeclared (first use in this function)
driver_madwifi.c:260: error: `IEEE80211_PARAM_RSNCAPS' undeclared (first use in this function)
driver_madwifi.c:267: error: `IEEE80211_PARAM_WPA' undeclared (first use in this  function)
driver_madwifi.c: In function `madwifi_set_ieee8021x':
driver_madwifi.c:332: error: `IEEE80211_PARAM_AUTHMODE' undeclared (first use in  this function)
driver_madwifi.c:333: error: `IEEE80211_AUTH_AUTO' undeclared (first use in this  function)
driver_madwifi.c:346: error: `IEEE80211_AUTH_WPA' undeclared (first use in this function)
driver_madwifi.c:346: error: `IEEE80211_AUTH_8021X' undeclared (first use in thi s function)
driver_madwifi.c: In function `madwifi_set_privacy':
driver_madwifi.c:363: error: `IEEE80211_PARAM_PRIVACY' undeclared (first use in this function)
driver_madwifi.c: In function `madwifi_set_sta_authorized':
driver_madwifi.c:371: error: storage size of `mlme' isn't known
driver_madwifi.c:378: error: `IEEE80211_MLME_AUTHORIZE' undeclared (first use in  this function)
driver_madwifi.c:380: error: `IEEE80211_MLME_UNAUTHORIZE' undeclared (first use in this function)
driver_madwifi.c:382: error: `IEEE80211_ADDR_LEN' undeclared (first use in this function)
driver_madwifi.c:383: error: `IEEE80211_IOCTL_SETMLME' undeclared (first use in this function)
driver_madwifi.c:371: warning: unused variable `mlme'
driver_madwifi.c: In function `madwifi_del_key':
driver_madwifi.c:392: error: storage size of `wk' isn't known
driver_madwifi.c:400: error: `IEEE80211_ADDR_LEN' undeclared (first use in this function)
driver_madwifi.c:401: error: `IEEE80211_KEYIX_NONE' undeclared (first use in thi s function)
driver_madwifi.c:406: error: `IEEE80211_IOCTL_DELKEY' undeclared (first use in t his function)
driver_madwifi.c:392: warning: unused variable `wk'
driver_madwifi.c: In function `madwifi_set_key':
driver_madwifi.c:416: error: storage size of `wk' isn't known
driver_madwifi.c:427: error: `IEEE80211_CIPHER_WEP' undeclared (first use in thi s function)
driver_madwifi.c:429: error: `IEEE80211_CIPHER_TKIP' undeclared (first use in th is function)
driver_madwifi.c:431: error: `IEEE80211_CIPHER_AES_CCM' undeclared (first use in  this function)
driver_madwifi.c:446: error: `IEEE80211_KEY_RECV' undeclared (first use in this function)
driver_madwifi.c:446: error: `IEEE80211_KEY_XMIT' undeclared (first use in this function)
driver_madwifi.c:448: error: `IEEE80211_ADDR_LEN' undeclared (first use in this function)
driver_madwifi.c:450: error: `IEEE80211_KEY_DEFAULT' undeclared (first use in th is function)
driver_madwifi.c:453: error: `IEEE80211_KEYIX_NONE' undeclared (first use in thi s function)
driver_madwifi.c:458: error: `IEEE80211_IOCTL_SETKEY' undeclared (first use in t his function)
driver_madwifi.c:416: warning: unused variable `wk'
driver_madwifi.c: In function `madwifi_get_seqnum':
driver_madwifi.c:467: error: storage size of `wk' isn't known
driver_madwifi.c:474: error: `IEEE80211_ADDR_LEN' undeclared (first use in this function)
driver_madwifi.c:479: error: `IEEE80211_IOCTL_GETKEY' undeclared (first use in t his function)
driver_madwifi.c:467: warning: unused variable `wk'
driver_madwifi.c: In function `madwifi_sta_deauth':
driver_madwifi.c:635: error: storage size of `mlme' isn't known
driver_madwifi.c:641: error: `IEEE80211_MLME_DEAUTH' undeclared (first use in th is function)
driver_madwifi.c:643: error: `IEEE80211_ADDR_LEN' undeclared (first use in this function)
driver_madwifi.c:644: error: `IEEE80211_IOCTL_SETMLME' undeclared (first use in this function)
driver_madwifi.c:635: warning: unused variable `mlme'
driver_madwifi.c: In function `madwifi_sta_disassoc':
driver_madwifi.c:652: error: storage size of `mlme' isn't known
driver_madwifi.c:659: error: `IEEE80211_ADDR_LEN' undeclared (first use in this function)
driver_madwifi.c:660: error: `IEEE80211_IOCTL_SETMLME' undeclared (first use in this function)
driver_madwifi.c:652: warning: unused variable `mlme'
driver_madwifi.c: At top level:
driver_madwifi.c:664: error: `IEEE80211_ADDR_LEN' undeclared here (not in a func tion)
driver_madwifi.c: In function `madwifi_process_wpa_ie':
driver_madwifi.c:687: error: storage size of `ie' isn't known
driver_madwifi.c:694: error: `IEEE80211_ADDR_LEN' undeclared (first use in this function)
driver_madwifi.c:695: error: `IEEE80211_IOCTL_GETWPAIE' undeclared (first use in  this function)
driver_madwifi.c:687: warning: unused variable `ie'
driver_madwifi.c: At top level:
driver_madwifi.c:721: error: `IEEE80211_ADDR_LEN' undeclared here (not in a func tion)
driver_madwifi.c: In function `madwifi_wireless_event_wireless':
driver_madwifi.c:852: error: incompatible type for argument 2 of `madwifi_del_st a'
driver_madwifi.c:855: error: incompatible type for argument 2 of `madwifi_new_st a'
driver_madwifi.c: In function `madwifi_set_countermeasures':
driver_madwifi.c:1251: error: `IEEE80211_PARAM_COUNTERMEASURES' undeclared (firs t use in this function)
make: *** [driver_madwifi.o] Error 1

so, it seems hostapd is unable to locate this soft, but i reviewed and all are under madwifi directory, and this is my .config file:

CONFIG_DRIVER_MADWIFI=y
CFLAGS += -I../usr/src/madwifi-ng-r1457-20060228

so tried to download and install this packets:

madwifi-dev_0.svn20060207-1_all.deb
madwifi-source_0.svn20060207-1_all.deb
madwifi-tools_0.svn20060207-1_i386.deb

and made this in .config file:

CFLAGS += -I../usr/include/madwifi/include/ 

i used this too:

CFLAGS += -I/usr/local/include
LIBS += -L/usr/local/lib

but, always same error.  so i installed hostapd_0.5.1-1.deb and configured it so work with madwifi, but this program simply don't talk with madwifi, first trying to use radius internal server, and get this:

ioctl[unknown???]: Argument list too long
Could not connect to kernel driver.
Deauthenticate all stations
rmdir[ctrl_interface]: No such file or directory
madwifi_set_privacy: enabled=0
madwifi_set_ieee8021x: enabled=0

if try using freeradius, worst, clients never see radius server.
by the way i use debian sarge kernel 2.6.15, freeradius-1.1.0, madwifi-ng-r1457.

now, why this behavior?? why hostapd simply cann't detect madwifi?? i followed instructions from madwifi.org documents and many different tutorials, but nothing seems to work for me.
so, please, could any body try to help?

thanks in advance.


_______________________________________________________________ 
What is the tallest volcano in the world?

postmaster.co.uk
http://www.postmaster.co.uk/cgi-bin/meme/quiz.pl?id=267




More information about the HostAP mailing list