Hi Greg,

You had mentioned that using

             gcc -c -Wall -D__KERNEL__ -DMODULE bluetooth.c
is a wrong command to build an external module and this might be the reason
for my problem. But this is the way I see external modules being compiled in
various articles and tutorials. For eg: http://lwn.net/Articles/21823/

Are there any other commands to compile external modules ? Could  you tell
me or point me to where I can get more info on the same ?


Background to the problem :

We have discussed some of this before. But the way the problem persists I
think I shuold be missing something obvious. I have a Belkins USB bluetooth
card (Vendor ID 0x050d & Product ID 0x0084) and I was trying to  get a
bluetooth tty driver up for it by compiling bluetooth.c (by Greg
Kroah-Hartman) found in kernel source. I am using bluetooth.c Version 0.12
*with no modifications* on a slackware box running kernel 2.4.22 but I am
getting a NULL pointer dereference exception in the function
usb_bluetooth_probe in the line  :

 interface = &dev->actconfig->interface[ifnum].altsetting[0];

Actually on checking I found that something is wrong with the struct
usb_device *dev obtained in the usb_bluetooth_probe function itself. Any
values obtained using this pointer like vendor-id product-id etc is wrong.
But at the same time in /var/log/messages we can find messages from
usb.agent having correctly identified the vendor and product ids. The
hardware works perfectly when using bluez stack. I tried doing a device
inquiry etc.and there were no problems. Everything works well with bluez.
What could be causing this problem of wrong values being returned in the
bluetooth.c module ?


rgds
amol









-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to