Re:回复: driver_madwifi.c need the header file include/compat.h, net80211/ieee80211.h, net80211/ieee80211_crypto.h, net80211/ieee80211_ioctl.h??

Petr Novak n_petr
Tue Aug 5 06:11:27 PDT 2008


Hello,
I have compilation problems too. I solved it this way:

cg clone git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git/
git-clone git://w1.fi/srv/git/hostap.git
ln -sf ./rt2x00 /usr/src/linux
cp /usr/src/linux/include/linux/nl80211.h /usr/include/linux

Then compile successuflly.

Petr Novak

> ------------ P?vodn? zpr?va ------------
> Od: ??h <wangyue0921 at yahoo.com.cn>
> P?edm?t: ??? driver_madwifi.c need the header file include/compat.h, 
> net80211/ieee80211.h,  net80211/ieee80211_crypto.h, 
> net80211/ieee80211_ioctl.h??
> Datum: 05.8.2008 12:42:41
> ----------------------------------------
> I am sorry to make a silly mistake.
> In the .config file, the path of madwifi should be:
> CFLAGS += -I/home/wangyue/madwifi
> instead of
> CFLAGS += -I../home/wangyue/madwifi
> 
> And these header files comes from madwifi, not the
> linux kernel.
> 
> Best regards,
> WY
> 
> --- ??h <wangyue0921 at yahoo.com.cn>??:
> 
> > Hi all,
> > I'm the newbie of hostAP.
> > I want to deploy hostAP and madwifi on Atheros
> > chipset.
> > And I have some questions as follow:
> > 
> > 1. Is there any docs on how to deploy hostAP on
> > madwifi?
> >    I have deployed madwifi on atheros chipset
> > successfully and it worked well as both station
> > and AP. But I don't know how to use hostAP?
> > 
> > 2. I created the .config file from defconfig, change
> > the file as follow:
> > # Driver interface for Host AP driver
> > #CONFIG_DRIVER_HOSTAP=y
> > 
> > # Driver interface for wired authenticator
> > #CONFIG_DRIVER_WIRED=y
> > 
> > # Driver interface for madwifi driver
> > CONFIG_DRIVER_MADWIFI=y
> > CFLAGS += -I../home/wangyue/madwifi # change to
> > reflect local setup; directory for madwifi src
> > 
> > Then run make and make install.
> > But there are several warning and error infos:
> > 
> > driver_madwifi.c:21:28: warning: include/compat.h:
> > No
> > such file or directory
> > driver_madwifi.c:22:32: warning:
> > net80211/ieee80211.h:
> > No such file or directory
> > driver_madwifi.c:28:39: warning:
> > net80211/ieee80211_crypto.h: No such file or
> > directory
> > driver_madwifi.c:29:38: warning:
> > net80211/ieee80211_ioctl.h: No such file or
> > directory
> > driver_madwifi.c: In function
> > â?˜set80211privâ?™:
> > driver_madwifi.c:145: error:
> >
> â?˜IEEE80211_IOCTL_SETPARAMâ?™
> > undeclared (first use in this function)
> > driver_madwifi.c:145: error: (Each undeclared
> > identifier is reported only once
> > driver_madwifi.c:145: error: for each function it
> > appears in.)
> > .............
> > 
> > (2.1) Maybe someone else got this problem before,
> > and what can I do for it?
> > 
> > In my OS(FC 7 and kernel version 2.6.21), there
> > arenot
> > such header files as compat.h and so on, in the path
> > that driver_madwifi.c refers to.
> > 
> > (2.2) And I searched these files on
> > http://lxr.linux.no/linux, found compat.h is in
> > include/net/compat.h and ieee80211.h
> > include/net/ieee80211.h.
> > These paths were not the same as the file
> > driver_madwifi.c refers to.
> > Is there any question on driver_madwifi.c?
> > 
> > (2.3) There arenot compat.h and ieee80211.h in the 
> > path include/net/ and include/net/ still of my 
> > OS.
> > Maybe my FC7 doesn't contain all kernel headers?
> > How can I update the headers?
> > 
> > That's all. Thank you.
> > 
> > Best regards,
> > WangYue



More information about the Hostap mailing list