rt2x00-cvs-2007121608: ‘RX_FLAG_FAILED_FCS_CRC’ undeclared

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4504

chenaillou

16-12-2007 18:02:11

Hello,

I'm running a Lenny Debian distribution with custom 2.6.23.11 latest stable kernel including eeprom_93cx6

I've tried to compile one of your latest CVS tarball but ... it still failed here is my log

[codewovu2zp3]
Turbo1:~/Desktop/install/rt2x00-cvs-2007121608# make
CC [M] /root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.o
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c: In function ‘rt61pci_fill_rxdone’:
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1686: erreur: ‘RX_FLAG_FAILED_FCS_CRC’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1686: erreur: (Each undeclared identifier is reported only once
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1686: erreur: for each function it appears in.)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c: In function ‘rt61pci_validate_eeprom’:
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1863: erreur: implicit declaration of function ‘DECLARE_MAC_BUF’
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1863: erreur: ‘macbuf’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1866: erreur: implicit declaration of function ‘print_mac’
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1866: attention : format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c: In function ‘rt61pci_configure_filter’:
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2319: erreur: ‘FIF_ALLMULTI’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2320: erreur: ‘FIF_FCSFAIL’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2321: erreur: ‘FIF_PLCPFAIL’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2322: erreur: ‘FIF_CONTROL’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2323: erreur: ‘FIF_OTHER_BSS’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2324: erreur: ‘FIF_PROMISC_IN_BSS’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c: Hors de toute fonction :
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2468: erreur: unknown field ‘start’ specified in initializer
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2469: attention : initialization from incompatible pointer type
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2474: erreur: unknown field ‘configure_filter’ specified in initializer
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2474: attention : initialization from incompatible pointer type
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2477: erreur: unknown field ‘erp_ie_changed’ specified in initializer
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2477: attention : initialization from incompatible pointer type
make[2]: *** [/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.o] Erreur 1
make[1]: *** [_module_/root/Desktop/install/rt2x00-cvs-2007121608] Erreur 2
make: *** [default] Erreur 2

[/codewovu2zp3]


Any idea ? every time I'm trying to compile this driver it failed but I have no idea of what could be the problem.

thanks

Amp_God

16-12-2007 20:23:35

Hello,

I'm running a Lenny Debian distribution with custom 2.6.23.11 latest stable kernel including eeprom_93cx6

I've tried to compile one of your latest CVS tarball but ... it still failed here is my log

[code1wgfgk0h]
Turbo1:~/Desktop/install/rt2x00-cvs-2007121608# make
CC [M] /root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.o
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c: In function ‘rt61pci_fill_rxdone’:
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1686: erreur: ‘RX_FLAG_FAILED_FCS_CRC’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1686: erreur: (Each undeclared identifier is reported only once
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1686: erreur: for each function it appears in.)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c: In function ‘rt61pci_validate_eeprom’:
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1863: erreur: implicit declaration of function ‘DECLARE_MAC_BUF’
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1863: erreur: ‘macbuf’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1866: erreur: implicit declaration of function ‘print_mac’
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:1866: attention : format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c: In function ‘rt61pci_configure_filter’:
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2319: erreur: ‘FIF_ALLMULTI’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2320: erreur: ‘FIF_FCSFAIL’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2321: erreur: ‘FIF_PLCPFAIL’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2322: erreur: ‘FIF_CONTROL’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2323: erreur: ‘FIF_OTHER_BSS’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2324: erreur: ‘FIF_PROMISC_IN_BSS’ undeclared (first use in this function)
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c: Hors de toute fonction :
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2468: erreur: unknown field ‘start’ specified in initializer
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2469: attention : initialization from incompatible pointer type
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2474: erreur: unknown field ‘configure_filter’ specified in initializer
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2474: attention : initialization from incompatible pointer type
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2477: erreur: unknown field ‘erp_ie_changed’ specified in initializer
/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.c:2477: attention : initialization from incompatible pointer type
make[2]: *** [/root/Desktop/install/rt2x00-cvs-2007121608/rt61pci.o] Erreur 1
make[1]: *** [_module_/root/Desktop/install/rt2x00-cvs-2007121608] Erreur 2
make: *** [default] Erreur 2

[/code1wgfgk0h]


Any idea ? every time I'm trying to compile this driver it failed but I have no idea of what could be the problem.

thanks[/quote1wgfgk0h]

rt2x00 needs a *lot* of patches from wireless-dev.
Since vanilla doesnt have them, naturally the compile goes wrong. p

Try fetching latest rt2x00 git (that includes the patches & latest rt2x00 & whole kernel)
If you need "bleeding-edge" kernel, download the linux-2.6 tree too and merge it to the rt2x00.
[snip]
git pull /where/is/linux-2.6
[/snip]
That trick doesnt work on the linux-2.6-stable tree though (

chenaillou

16-12-2007 21:25:34



rt2x00 needs a *lot* of patches from wireless-dev.
Since vanilla doesnt have them, naturally the compile goes wrong. p

Try fetching latest rt2x00 git (that includes the patches & latest rt2x00 & whole kernel)
If you need "bleeding-edge" kernel, download the linux-2.6 tree too and merge it to the rt2x00.
[snip]
git pull /where/is/linux-2.6
[/snip]
That trick doesnt work on the linux-2.6-stable tree though ([/quote3lpkez6l]

Are you trying to say that I need a dev kernel (2.5 ? ) in order to use the rt2x00 driver ? I want to use only stable kernels and no dev kernel, so even if i get the latest git from rt2x00 but can't use it with my 2.6.23.11 which version of the RT61 driver should I use ? I was thinking that the current rt2x00 tarball would work on standard 2.6 stable linux kernel ? if not I think it would be great to precise it on the website ..

saittam

17-12-2007 00:41:28


Are you trying to say that I need a dev kernel (2.5 ? ) in order to use the rt2x00 driver ? I want to use only stable kernels and no dev kernel, so even if i get the latest git from rt2x00 but can't use it with my 2.6.23.11 which version of the RT61 driver should I use ? I was thinking that the current rt2x00 tarball would work on standard 2.6 stable linux kernel ? if not I think it would be great to precise it on the website ..[/quote17vr4iq1]
Here are some answers
[list17vr4iq1][*17vr4iq1] You don't need 2.5[/*m17vr4iq1]
[*17vr4iq1] 2.6.23.X is not compatible with current rt2x00 git[/*m17vr4iq1]
[*17vr4iq1] (hopefully stable) rt2x00 will be in mainline 2.6.24[/*m17vr4iq1][/listu17vr4iq1]
Thing is, the wireless code base is moving really fast at the moment. rt2x00.git moves in sync with the wireless-2.6 development tree. This explains why it's not compatible with release kernels most of the time.

Hope this helps.

chrisV

17-12-2007 21:20:10


Are you trying to say that I need a dev kernel (2.5 ? ) in order to use the rt2x00 driver ? I want to use only stable kernels and no dev kernel, so even if i get the latest git from rt2x00 but can't use it with my 2.6.23.11 which version of the RT61 driver should I use ? I was thinking that the current rt2x00 tarball would work on standard 2.6 stable linux kernel ? if not I think it would be great to precise it on the website ..[/quote3jhhnza8]

I can send you a version of rt2x00 which will compile with 2.6.23 together with a version of mac80211 to enable it to do so. The rt2x00 source calls itself version 2.0.12 but it also has the fixes which are in 2.0.13.

You will need to send me your e-mail address (I believe there is a way of sending private messages on the rt2x00 website giving me your e-mail address although I could not tell you how to do it).

You may have to wait two days because after this evening I am likely to be away from home for a couple of days.

Chris

chenaillou

18-12-2007 20:43:10

ok, I understand now,

Yes if you could send me a version that would compile on my kernel it would be great , see your private messages for my email.

thanks

maybe it would be a good idea to let this version available to peoples like me that have the same problem (because i'm sure there are somes)

chrisV

18-12-2007 23:09:16

Yes if you could send me a version that would compile on my kernel it would be great , see your private messages for my email.
[/quotezd43y4pb]

I have e-mailed it to you. If all is not clear, e-mail me back.

Chris