Re: compiling problems with 2002-05-19


From: Jouni Malinen (jkmaline_at_cc.hut.fi)
Date: 2002-07-22 15:50:30 UTC



On Mon, Jul 22, 2002 at 12:19:46AM +1000, Lee Ryman wrote:

> [root@###### Prism2-2002-05-19]# make pci
> gcc -I/usr/src/linux-2.4/include -O2 -D__KERNEL__ -DMODULE -Wall -c -fomit-f
> rame-pointer -o driver/modules/hostap_pci.o driver/modules/hostap_pci.c

> driver/modules/hostap_pci.c:190: warning: implicit declaration of function
> `pci_disable_device'
> driver/modules/hostap_pci.c:228: unknown field `save_state' specified in
> initializer
> driver/modules/hostap_pci.c:231: unknown field `enable_wake' specified in
> initializer

I'd guess that you are using a bit older Linux kernel version that does not have those function and fields. I added #ifdef's to get fix the compilation with older kernels (just commenting those lines out should be enough). CVS snapshot from http://hostap.epitest.fi/ should compile fine even with older kernels (if it does not, please let me know and I'll fix it). Upgrading the kernel is another possibility, if you do not want to use CVS snapshot of the driver or edit hostap_pci.c.

-- 
Jouni Malinen                                            PGP id EFC895FA


This archive was generated by hypermail 2.1.4.