Ive got an ubiquiti network expresscard atheros wifi card, and since a couple of automatic upgrades ago the ath0 interface has disappeared. In fact the expresscard doesnt seem to show in lshw at all. Anyway, Im trying to compile the madwifi drivers for it but its failling...
I dont have a clue when it comes to the kernel, can anyone pick ot what bit of that is causing the error please?Code:Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.28-13-generic/build SUBDIRS=/root/madwifi-0.9.4 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-13-generic'
CC [M] /root/madwifi-0.9.4/ath/if_ath.o
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /root/madwifi-0.9.4/ath/if_ath.c:51:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: error: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from /root/madwifi-0.9.4/ath/if_ath.c:51:
include/linux/mmzone.h:277: error: 'MAX_NR_ZONES' undeclared here (not in a function)
In file included from include/linux/scatterlist.h:6,
from /usr/src/linux-headers-2.6.28-13-generic/arch/x86/include/asm/dma-mapping.h:9,
from include/linux/dma-mapping.h:57,
from include/linux/dmaengine.h:29,
from include/linux/skbuff.h:29,
from /root/madwifi-0.9.4/ath/if_ath.c:53:
include/linux/mm.h:437:63: error: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:485:62: error: "NR_PAGEFLAGS" is not defined
make[3]: *** [/root/madwifi-0.9.4/ath/if_ath.o] Error 1
make[2]: *** [/root/madwifi-0.9.4/ath] Error 2
make[1]: *** [_module_/root/madwifi-0.9.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-13-generic'
make: *** [modules] Error 2
edit: A similar error occurs when trying to compile a new driver for the internal PRO/Wireless 4965 AG card...
Code:CC [M] /root/compat-wireless-2009-07-09/drivers/misc/eeprom/eeprom_93cx6.o
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/textsearch.h:7,
from include/linux/skbuff.h:26,
from /root/compat-wireless-2009-07-09/include/net/compat-2.6.29.h:10,
from /root/compat-wireless-2009-07-09/include/net/compat.h:20,
from <command-line>:0:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:256:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from include/linux/textsearch.h:7,
from include/linux/skbuff.h:26,
from /root/compat-wireless-2009-07-09/include/net/compat-2.6.29.h:10,
from /root/compat-wireless-2009-07-09/include/net/compat.h:20,
from <command-line>:0:
include/linux/mmzone.h:277: error: ‘MAX_NR_ZONES’ undeclared here (not in a function)
In file included from include/linux/scatterlist.h:6,
from /usr/src/linux-headers-2.6.28-13-generic/arch/x86/include/asm/dma-mapping.h:9,
from include/linux/dma-mapping.h:57,
from include/linux/dmaengine.h:29,
from include/linux/skbuff.h:29,
from /root/compat-wireless-2009-07-09/include/net/compat-2.6.29.h:10,
from /root/compat-wireless-2009-07-09/include/net/compat.h:20,
from <command-line>:0:
include/linux/mm.h:437:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:485:62: warning: "NR_PAGEFLAGS" is not defined
make[3]: *** [/root/compat-wireless-2009-07-09/drivers/misc/eeprom/eeprom_93cx6.o] Error 1
make[2]: *** [/root/compat-wireless-2009-07-09/drivers/misc/eeprom] Error 2
make[1]: *** [_module_/root/compat-wireless-2009-07-09] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-13-generic'
make: *** [modules] Error 2

