El Lunes, 13 de Noviembre de 2006 17:25, Brian Millett escribió: > Tobias Bocanegra wrote: > >> This is not the config.h problem > >> > >> I'm trying to compile the ipw3945-1.1.0 from intel and I get the > >> following "too few arguments to function 'ieee80211_tx_frame'" errors. > >> I thought that the latest kernels didn't need the ieee80211 patches? > >> > >> Any ideas that are relevant? > >> > >> make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2849.fc6-i686' > >> CC [M] > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.o > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.c: In > >> function 'ipw_send_associate': > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.c:440 > >>9: > >> > >> error: too few arguments to function 'ieee80211_tx_frame' > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.c: In > >> function 'ipw_bg_daemon_cmd': > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.c:488 > >>5: > >> > >> error: too few arguments to function 'ieee80211_tx_frame' > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.c: In > >> function 'ipw_auth_work': > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.c:945 > >>4: > >> > >> error: too few arguments to function 'ieee80211_tx_frame' > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.c:950 > >>4: > >> > >> error: too few arguments to function 'ieee80211_tx_frame' > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.c: In > >> function 'ipw_handle_probe_request': > >> /home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.c:957 > >>7: > >> > >> error: too few arguments to function 'ieee80211_tx_frame' > >> make[2]: *** > >> [/home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0/ipw3945.o] > >> Error 1 > >> make[1]: *** > >> [_module_/home/bpm/src/d820_cruft/ipw3945-linux-1.1.0/ipw3945-1.1.0] > >> Error 2 > >> make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2849.fc6-i686' > >> make: *** [modules] Error 2 > > > > hi, i applied the following patches: > > > > --- ipw3945.h.orig 2006-09-25 22:07:20.000000000 +0200 > > +++ ipw3945.h 2006-09-25 22:10:43.000000000 +0200 > > @@ -48,6 +48,20 @@ > > > > #include <net/ieee80211.h> > > > > +#ifdef IEEE80211_VERSION_API > > +#define IEEE80211_API_VERSION IEEE80211_VERSION_API > > +#else > > +#ifdef IEEE80211_VERSION_CODE > > +#if ( IEEE80211_VERSION_CODE < KERNEL_VERSION(1,1,14) ) > > +#define IEEE80211_API_VERSION 1 > > +#else > > +#define IEEE80211_API_VERSION 2 > > +#endif > > +#else > > +#define IEEE80211_API_VERSION 1 > > +#endif > > +#endif > > + > > #define DRV_NAME "ipw3945" > > > > #include "ipw3945_daemon.h" > > > > # > > > > --- net/ieee80211.h.orig 2006-09-25 22:05:52.000000000 +0200 > > +++ net/ieee80211.h 2006-09-25 22:06:44.000000000 +0200 > > @@ -32,6 +32,9 @@ > > #define IEEE80211_VERSION "1.1.14" > > > > #include <linux/version.h> > > + > > +#define IEEE80211_VERSION_CODE KERNEL_VERSION(1,1,14) > > + > > #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,8) > > #define __iomem > > #define __le32 u32 > > > > after that, they compile just perfect. > > regards, toby > > Thanks, > > is the net/ieee80211.h in > /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/net/ieee80211.h > or > /lib/modules/2.6.18-1.2849.fc6/include/net/ieee80211.h > > thanks. I've got it in /lib/modules/2.6.18-1.2849.fc6/include/net/ Cheers -- Manuel Arostegui Ramirez. Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.