Problems compiling hostap-driver for kernel 2.6.3

Pavel Roskin proski at
Fri Feb 27 12:00:10 EST 2004

On Fri, 27 Feb 2004, Julian Finn wrote:

> > now it worked, but I have the following problem:
> > hyperion:~/hostap-driver-0.2.0# modprobe hostap_pci
> > WARNING: Error inserting hostap
> > (/lib/modules/2.6.3/kernel/drivers/net/wireless/hostap.ko): Invalid
> > module format
> > FATAL: Error inserting hostap_pci
> > (/lib/modules/2.6.3/kernel/drivers/net/wireless/hostap_pci.ko): Invalid
> > module format
> I still have this problem.. module-init-tools Version is 3.0-pre9

Check kernel log by running dmesg.  Try recompiling the driver.  Run

file /lib/modules/2.6.3/kernel/drivers/net/wireless/hostap.ko

and see the output.  It should be an ELF file.  Try the latest version of
module-init-tools.  Thy inserting the module by insmod:

insmod /lib/modules/2.6.3/kernel/drivers/net/wireless/hostap.ko

As the last resort, compile module-init-tools with debug information and
run it in the debugger.  Find where the error comes from.

Pavel Roskin

More information about the HostAP mailing list