From: Ian Rickards (Ian.Rickards_at_btinternet.com)
Date: 2002-06-06 21:23:29 UTC
I am running Linux 2.4.9-31 (RH 7.1 update kernel source package) and there
are absolutely no problems compiling hostap out of the box.
Previously I was using RH7.1 standard 2.4.2-2 and this did have the original posters' problems with pci_disable_device and the struct pci_driver members save_state and enable_wake.
However 2.4.9-31 does fix these issues.
I am also pleased to report I have not had any Linux crashes/hangs with the combination of 2.4.9-31 kernel and the Prism2-2002-05-19 release (D-link 520).
> Hello!
>
> > I'm having problems installing the PLX drivers for my RedHat systems
> > running kernel 2.4.2-2. I've also tried on a different RedHat system
> > running kernel 2.4.9-31 with no luck. The same compilation errors occur
> > in both instances. They are as follows:
>
> Everything is fine with modern kernels (2.4.19-preX). Unfortunately, PCI
> support has changed significantly during the "stable" 2.4.x series.
>
> > driver/modules/hostap_plx.c:327: warning: implicit declaration of
> > function `pci_disable_device'
>
> Perhars that function didn't exist back then.
>
> > driver/modules/hostap_plx.c: At top level:
> > driver/modules/hostap_plx.c:360: unknown field `save_state' specified
> in initializer
>
> I remember the flames in the kernel list when it was added. Perhaps the
> best solution would be to put an ifdef with kernel version around those
> fields.
>
> > [root_at_obsession Prism2-2002-05-16]# depmod -e
> > depmod: *** Unresolved symbols in /lib/modules/2.4.2-2/net/hostap_plx.o
> > depmod: pci_disable_device
>
> Remove all calls to pci_disable_device. Try loading and unloading the
> driver to make sure it won't crash on unload when you don't expect it.
>
> --
> Regards,
> Pavel Roskin
>