LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Ralink RT3290 Bluetooth not working in Debian Testing (https://www.linuxquestions.org/questions/debian-26/ralink-rt3290-bluetooth-not-working-in-debian-testing-4175508375/)

kamils096 06-18-2014 09:01 AM

Ralink RT3290 Bluetooth not working in Debian Testing
 
Hello, i have a problem with my Debian. I have a Ralink RT3290 WiFi and Bluetooth adapter. WiFi is working out of the box, but i haven't drivers for my bluetooth adapter. I have Debian Testing with kernel 3.14. When i use Ubuntu with old kernel i found and i compile drivers bluetooth and its working, but this drivers won't compile on new kernel. I found this bug on launchpad:
https://bugs.launchpad.net/ubuntu/+s...x/+bug/1189721

This is for Ubuntu, but Ubuntu it's modified Debian, so drivers for Ubuntu should work in Debian. I download patched drivers(patched to work in new kernel) from post number 88, and i have a problem. Bluetooth adapter is working, and i can find devices, but i can't pair devices and send files. When i try to pair devices(PC and my mobile phone) they show me code(of course devices show same code), i accept this code and i have error(on mobile phone) that code or adress is incorrect. When i try to send file from mobile phone(it detect my PC without problems) to PC i get information "File was not send", when i try to send from PC to mobile phone nothing happens. How i can make my adapter work? I suspect bad drivers, but where i can get working drivers? Sorry for my bad English, thank you in advance for replies.

PS: When i turn off bluetooth i can't turn it on unless i restart PC.

cynwulf 06-18-2014 09:33 AM

The distribution is largely irrelevant here.

Which kernel did the driver compile and work under?

What are the compile errors?

kamils096 06-18-2014 10:16 AM

I don't remember which driver i use before, but i found driver for Ubuntu 13:
https://launchpad.net/~barracuda72/+...u1~ppa3.tar.gz

Compilation log:
Code:

make -C /lib/modules/3.14-1-amd64/build M=/home/kamil/rtbth-3.9.3 modules
make[1]: Entering directory '/usr/src/linux-headers-3.14-1-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
  CC [M]  /home/kamil/rtbth-3.9.3/rtbth_core_main.o
  CC [M]  /home/kamil/rtbth-3.9.3/rtbth_core_init.o
/home/kamil/rtbth-3.9.3/rtbth_core_init.c: In function ‘Rtbth_Set_Radio_Led’:
/home/kamil/rtbth-3.9.3/rtbth_core_init.c:1185:3: warning: typedef ‘flag_t’ locally defined but not used [-Wunused-local-typedefs]
 } flag_t;
  ^
  CC [M]  /home/kamil/rtbth-3.9.3/rtbth_core_pci.o
/home/kamil/rtbth-3.9.3/rtbth_core_pci.c: In function ‘rtbt_pci_probe’:
/home/kamil/rtbth-3.9.3/rtbth_core_pci.c:198:1: warning: label ‘err_hps_iface’ defined but not used [-Wunused-label]
 err_hps_iface:
 ^
  CC [M]  /home/kamil/rtbth-3.9.3/rtbth_core_bluez.o
/home/kamil/rtbth-3.9.3/rtbth_core_bluez.c: In function ‘rtbt_hci_dev_receive’:
/home/kamil/rtbth-3.9.3/rtbth_core_bluez.c:216:2: warning: passing argument 1 of ‘hci_recv_frame’ from incompatible pointer type [enabled by default]
  status = hci_recv_frame(skb);
  ^
In file included from /home/kamil/rtbth-3.9.3/include/hps_bluez.h:32:0,
                from /home/kamil/rtbth-3.9.3/rtbth_core_bluez.c:29:
/usr/src/linux-headers-3.14-1-common/include/net/bluetooth/hci_core.h:769:5: note: expected ‘struct hci_dev *’ but argument is of type ‘struct sk_buff *’
 int hci_recv_frame(struct hci_dev *hdev, struct sk_buff *skb);
    ^
/home/kamil/rtbth-3.9.3/rtbth_core_bluez.c:216:2: error: too few arguments to function ‘hci_recv_frame’
  status = hci_recv_frame(skb);
  ^
In file included from /home/kamil/rtbth-3.9.3/include/hps_bluez.h:32:0,
                from /home/kamil/rtbth-3.9.3/rtbth_core_bluez.c:29:
/usr/src/linux-headers-3.14-1-common/include/net/bluetooth/hci_core.h:769:5: note: declared here
 int hci_recv_frame(struct hci_dev *hdev, struct sk_buff *skb);
    ^
/home/kamil/rtbth-3.9.3/rtbth_core_bluez.c: In function ‘rtbt_hps_iface_init’:
/home/kamil/rtbth-3.9.3/rtbth_core_bluez.c:404:13: warning: assignment from incompatible pointer type [enabled by default]
  hdev->send = rtbt_hci_dev_send;
            ^
/home/kamil/rtbth-3.9.3/rtbth_core_bluez.c:406:6: error: ‘struct hci_dev’ has no member named ‘ioctl’
  hdev->ioctl = rtbt_hci_dev_ioctl;
      ^
/home/kamil/rtbth-3.9.3/rtbth_core_bluez.c: At top level:
/home/kamil/rtbth-3.9.3/rtbth_core_bluez.c:83:20: warning: ‘pkt_type_str’ defined but not used [-Wunused-variable]
 static const char *pkt_type_str[]=
                    ^
/usr/src/linux-headers-3.14-1-common/scripts/Makefile.build:308: rules for object '/home/kamil/rtbth-3.9.3/rtbth_core_bluez.o' failed
make[4]: *** [/home/kamil/rtbth-3.9.3/rtbth_core_bluez.o] Error 1
/usr/src/linux-headers-3.14-1-common/Makefile:1291: rules for object '_module_/home/kamil/rtbth-3.9.3' failed
make[3]: *** [_module_/home/kamil/rtbth-3.9.3] Error 2
Makefile:133: rules for object 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: rules for object 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.14-1-amd64'
Makefile:24: rules for object 'all' failed
make: *** [all] Error 2


cynwulf 06-18-2014 11:43 AM

http://wirama.web.id/rt3290-bluetoot...h-kernel-3-13/

kamils096 06-18-2014 11:58 AM

This page is not working, it loads indefinitely.

cynwulf 06-18-2014 04:40 PM

No problem here, try later or use/don't use a proxy.

kamils096 06-26-2014 11:47 AM

Ok i show this page and apply patch from there. I can't pair with my Android device(same problem as before), but i try to pair with my old Nokia N95, and i pair this without problem, but i must write code to pair in my phone manually. I can send files from phone to PC, but vice versa is not working. When i choose Send file from Dolphin(i have KDE) and i choose device nothing happens. When i try to send file from KDE Bluetooth Manager i have same problem. So i can send files from phone to PC, but i can't send files from PC to phone.


All times are GMT -5. The time now is 06:07 AM.