Host AP on Fedora Core 3

Jun Sun jsun
Sun Nov 28 11:32:07 PST 2004

On Sat, Nov 13, 2004 at 09:05:15PM +0000, DrDoom wrote:
> I just did it, no problems encountered.
> DrDoom wrote:
> >Did someone install hostap on FC3 ?
> >

I am trying to do the same but having problems.

Did you install hostap as add-on modules or as kernel patch?

I am compiling hostap as add-on modules.  The problem appears to be that
the modules are compiled as .o files instead of .ko files.  depmod -ae
won't discover the .o hostap files. 

I did encounter a couple of other issues.  I summarize them as follows
and hopefully other people can benefit:

1. fc3 does not have kernel source rpm.

. up2date --get-source kernel
. (as root) rpm -ivh /var/spool/up2date/kernel-2.6.9-1.667.src.rpm
. rpmbuild -v -v --target=i686 -bp /usr/src/redhat/SPEC/kernel-2.6.spec
. cd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/
. [if you are using SMP kernel]
	cp configs/<smp>.config .config
. make oldconfig
. make vmlinux

The last step is stupid.  But without it, some files such as include/linux/
version.h are not created.

2. hostap picks up kernel version from the source tree instead of
   current running kernel.  I had to patch the Makefile for hostap:

diff -Nru Makefile.orig Makefile
--- Makefile.orig       2004-11-28 10:44:41.438069327 -0800
+++ Makefile    2004-11-28 11:04:44.250296615 -0800
@@ -1,6 +1,8 @@
 # Edit this path to match with your system (it should point to the root
 # directory of the Linux kernel source)
 # Systems using external pcmcia-cs package (instead of kernel-tree pcmcia
 # modules):
@@ -53,6 +55,7 @@
 KERNELRELEASE := $(shell if [ -r $(VERFILE) ]; \
        then (cat $(VERFILE); echo UTS_RELEASE) | $(CC) $(INCLUDES) $(CFLAGS) -E - | tail -1 | xargs echo; \
        else uname -r; fi)
+KERNELRELEASE := $(shell uname -r)
 KERNELVER := $(shell echo "$(KERNELRELEASE)" | \
        sed "s/\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/")


More information about the Hostap mailing list