linux-2.6.26 & rt_ioctl_giwscan

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

nubian

22-08-2008 08:00:45

Some output )

I installed new kernel and it's not comfortable to use cable connection

[code2n9bgt33]
CC [M] /root/Module/rtmp_main.o
CC [M] /root/Module/mlme.o
CC [M] /root/Module/connect.o
CC [M] /root/Module/rtusb_bulk.o
CC [M] /root/Module/rtusb_io.o
CC [M] /root/Module/sync.o
CC [M] /root/Module/assoc.o
CC [M] /root/Module/auth.o
CC [M] /root/Module/auth_rsp.o
CC [M] /root/Module/rtusb_data.o
CC [M] /root/Module/rtmp_init.o
CC [M] /root/Module/sanity.o
CC [M] /root/Module/rtmp_wep.o
CC [M] /root/Module/rtmp_info.o
/root/Module/rtmp_info.c: In function ‘rt_ioctl_giwscan’:
/root/Module/rtmp_info.c:684: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
/root/Module/rtmp_info.c:684: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
/root/Module/rtmp_info.c:684: warning: passing argument 4 of ‘iwe_stream_add_event’ makes integer from pointer without a cast
/root/Module/rtmp_info.c:684: error: too many arguments to function ‘iwe_stream_add_event’
/root/Module/rtmp_info.c:696: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
/root/Module/rtmp_info.c:696: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
/root/Module/rtmp_info.c:696: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
/root/Module/rtmp_info.c:696: error: too many arguments to function ‘iwe_stream_add_point’
/root/Module/rtmp_info.c:719: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
/root/Module/rtmp_info.c:719: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
/root/Module/rtmp_info.c:719: warning: passing argument 4 of ‘iwe_stream_add_event’ makes integer from pointer without a cast
/root/Module/rtmp_info.c:719: error: too many arguments to function ‘iwe_stream_add_event’
/root/Module/rtmp_info.c:735: warning: passing argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type
/root/Module/rtmp_info.c:735: warning: passing argument 3 of ‘iwe_stream_add_event’ from incompatible pointer type
/root/Module/rtmp_info.c:735: warning: passing argument 4 of ‘iwe_stream_add_event’ makes integer from pointer without a cast
/root/Module/rtmp_info.c:735: error: too many arguments to function ‘iwe_stream_add_event’
/root/Module/rtmp_info.c:749: warning: passing argument 1 of ‘iwe_stream_add_point’ from incompatible pointer type
/root/Module/rtmp_info.c:749: warning: passing argument 3 of ‘iwe_stream_add_point’ from incompatible pointer type
/root/Module/rtmp_info.c:749: warning: passing argument 4 of ‘iwe_stream_add_point’ from incompatible pointer type
/root/Module/rtmp_info.c:749: error: too many arguments to function ‘iwe_stream_add_point’
/root/Module/rtmp_info.c:766: warning: passing argument 1 of ‘iwe_stream_add_value’ from incompatible pointer type
/root/Module/rtmp_info.c:766: warning: passing argument 4 of ‘iwe_stream_add_value’ from incompatible pointer type
/root/Module/rtmp_info.c:766: warning: passing argument 5 of ‘iwe_stream_add_value’ makes integer from pointer without a cast
/root/Module/rtmp_info.c:766: error: too many arguments to function ‘iwe_stream_add_value’
make[2]: *** [/root/Module/rtmp_info.o] Error 1
make[1]: *** [_module_/root/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.26'
rt73.ko failed to build!
make: *** [module] Error 1
[/code2n9bgt33]

uname -r
2.6.26.2

And i'm using today's CVS snapshot

Vern

22-08-2008 15:18:08

Hi nubian,

Could you supply
1. the content of include/linux/version.h in your kernel source tree
2. the first five lines of the kernel source Makefile
3. the output of "uname -a"

Thanks,

Nagilum

22-08-2008 20:29:27

Same here..
running Debian Lenny with vanilla 2.6.25.15.
Also tried 2.6.26.2, same result.
for include/linux/version.h for 2.6.25.15
#define LINUX_VERSION_CODE 132633
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

for include/linux/version.h for 2.6.26.2
#define LINUX_VERSION_CODE 132634
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
uname -a
Linux nas 2.6.25.15 #1 SMP Wed Aug 6 223331 CEST 2008 x86_64 GNU/Linux

I looked into the definition of the function and it's funny, the parametercount matches the include..

Vern

23-08-2008 01:30:32

... and
4. a gzipped copy of your kernel source tree's version of ./include/net/iw_handler.h.

Thanks,

Nagilum

23-08-2008 08:47:30

Here we go..

nubian

29-08-2008 08:10:05

Requested output
[code5askqdfn]nubian-rev2:/usr/src/linux# cat include/linux/version.h
#define LINUX_VERSION_CODE 132634
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
nubian-rev2:/usr/src/linux# uname -a
Linux nubian-rev2 2.6.26.2 #5 SMP PREEMPT Fri Aug 22 00:43:07 CEST 2008 i686 GNU/Linux[/code5askqdfn]
Makefile
[code5askqdfn]VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 26
EXTRAVERSION = .2
NAME = Rotary Wombat[/code5askqdfn]
And an attachment. I see everything was submitted before. Also using Debian lenny.

Vern

29-08-2008 17:37:34

Hi nubian,

Thanks for the debug info. I wasn't quite handling the case where "uname -r" returned an "extraversion" component - e.g. "2.6.26.2" that was not followed by "- nn.fc...". The latest CVS (should start appearing in tarballs shortly) should fix that.

Thanks,

nubian

30-08-2008 13:52:30

Yes, it's working now )
thanx