strange problems after upgrading to kernel 2.6.10rc1

Jouni Malinen jkmaline
Thu Oct 28 20:42:04 PDT 2004


On Fri, Oct 29, 2004 at 01:30:32AM +0000, Benjamin Stritter wrote:

> after upgrading my hostap-box to a new kernel (gentoo, linux-2.6.10-rc1-
> mm1, wich is linux-2.6.10-rc1 with the mm-patchset), i have some
> problems with the hostap-driver kernel module.

With the new development model for Linux 2.6, this is likely to become
more frequent.. Linux 2.6.10-rc1 seems to have changed PCI calls for
driver registration and power saving state in a way which is not
backwards compatible. I added support for the new version in both
development and 0.2.x branches, so the current CVS snapshots should
compile and hopefully work with Linux 2.6.10-rc1. I would appreciate if
someone would test these (both hostap_pci.ko and hostap_plx.ko) with
both branches and report whether the current snapshots work.

> /var/tmp/portage/hostap-driver-0.2.5/work/hostap-driver-
> 0.2.5/driver/modules/hostap_hw.c:77: warning: `MODULE_PARM_' is
> deprecated (decl      ared at include/linux/module.h:562)

This should not be a fatal error (i.e., only a warning for parameter
mechanism that will disappear in future kernel releases). I'll convert
those MODULE_PARM uses to module_param() at some point.

> 0.2.5/driver/modules/hostap_pci.c: In function `prism2_pci_suspend':
> /var/tmp/portage/hostap-driver-0.2.5/work/hostap-driver-
> 0.2.5/driver/modules/hostap_pci.c:353: error: too many arguments to
> function `pc      i_save_state'
> /var/tmp/portage/hostap-driver-0.2.5/work/hostap-driver-
> 0.2.5/driver/modules/hostap_pci.c: In function `prism2_pci_resume':
> /var/tmp/portage/hostap-driver-0.2.5/work/hostap-driver-
> 0.2.5/driver/modules/hostap_pci.c:367: error: too many arguments to
> function `pc      i_restore_state'

This is the changed API for PCI power save state.

> When I modprobe hostap_plx another error occured (doesn't matter which
> version):
> 
> FATAL: Error inserting hostap_plx (/lib/modules/2.6.10-rc1-
> mm1/kernel/drivers/net/wireless/hostap_plx.ko): No such device
> 
> dmesg says:
> 
> 
> wifi0: registered netdevice wlan0
> hostap_plx: No devices found, driver not installed.

This is likely caused by the change in pci_register_driver() return
value. I have not tested the current CVS versions, but they should work.
Please let me know if this is not the case.

-- 
Jouni Malinen                                            PGP id EFC895FA




More information about the Hostap mailing list