You are not logged in.

#1 2006-05-05 21:18:26

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

madwifi and wpa

I have madwifi drivers working fine with my atheros card using WEP and I'm now trying to get WPA working. I've followed the instructions in the wiki (http://wiki.archlinux.org/index.php/Wpa_supplicant) but when I try to do the makepkg it complains that it can't find the madwifi source, this is because I've installed it from the new package.The errors start like this:

==> Starting build()...
cc -march=i686 -O2 -pipe -I. -I../utils -I../hostapd -I../madwifi/wpa -DCONFIG_BACKEND_FILE -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_MADWIFI -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MD5 -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_OTP -DEAP_LEAP -DEAP_TLV -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DPKCS12_FUNCS -DCONFIG_SMARTCARD -DCONFIG_WIRELESS_EXTENSION -DCONFIG_CTRL_IFACE   -c -o driver_madwifi.o driver_madwifi.c
driver_madwifi.c:31:28: error: include/compat.h: No such file or directory
driver_madwifi.c:32:32: error: net80211/ieee80211.h: No such file or directory
driver_madwifi.c:38:39: error: net80211/ieee80211_crypto.h: No such file or directory
driver_madwifi.c:39:38: error: net80211/ieee80211_ioctl.h: No such file or directory
driver_madwifi.c: In function 'set80211priv':

Do I have to uninstall the package and re-install from abs or is there a way around this?

Offline

#2 2006-05-06 06:17:54

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: madwifi and wpa

http://wiki.archlinux.org/index.php/Wpa … Installing

Apparently the wifi is written a bit wrong. You have to have the sources of madwifi, and AFAIK you don't get these inside the package.

This step (from the wiki) is useful only if you had build your madwifi package form the abs tree and then tried to build wpa-supplicant. It points the include path to abs's build location.

I guess you could just download both the abs tree for wpa_supplicant and madwifi-ng, build the package for madwifi-ng first, and then for wpa_supplicant and everything should work fine.

Offline

#3 2006-05-06 16:12:48

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: madwifi and wpa

I'll try that but I was hoping for a different approach if there was one.

For some reason, just getting WEP working was a tricky, it seemed tempremental and just started working for no apparent reason, I'd rather not risk fiddling and breaking it again if I can help it!

Offline

#4 2006-05-16 21:46:52

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: madwifi and wpa

I've finally got round to trying this but even after installing madwifi from ABS the wpa_suplicant package can't find the sources.

This is the start of the error messages, note the files that it claims are missing:

==> Starting build()...
cc -march=i686 -O2 -pipe -I. -I../utils -I../hostapd -I../madwifi/wpa -DCONFIG_BACKEND_FILE -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_MADWIFI -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MD5 -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_OTP -DEAP_LEAP -DEAP_TLV -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DPKCS12_FUNCS -DCONFIG_SMARTCARD -DCONFIG_WIRELESS_EXTENSION -DCONFIG_CTRL_IFACE   -c -o driver_madwifi.o driver_madwifi.c
driver_madwifi.c:31:28: error: include/compat.h: No such file or directory
driver_madwifi.c:32:32: error: net80211/ieee80211.h: No such file or directory
driver_madwifi.c:38:39: error: net80211/ieee80211_crypto.h: No such file or directory
driver_madwifi.c:39:38: error: net80211/ieee80211_ioctl.h: No such file or directory

the files are there in the directory where I built madwifi:

/var/abs/local/madwifi/src/madwifi-old-r1417-20060128/include/compat.h
/var/abs/local/madwifi/src/madwifi-old-r1417-20060128/net80211/ieee80211.h
/var/abs/local/madwifi/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto.h
/var/abs/local/madwifi/src/madwifi-old-r1417-20060128/net80211/ieee80211_ioctl.h

How do I tell the wpa package where to look for these files?

Offline

#5 2006-05-16 21:52:20

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: madwifi and wpa

Sorted it, found the CFLAGS setting in the config file

Offline

Board footer

Powered by FluxBB