Only problem, i cant turn it into a HSP\HSP profile but i think its another story(even after the ofono gambiarra). I still run the bredr_setup() but bypass the clear event filter step. Maybe the "#define lmp_bredr_capable(dev) 0" also work. Hci_req_add(req, HCI_OP_WRITE_CA_TIMEOUT, 2, ¶m) hci_req_add(req, HCI_OP_SET_EVENT_FLT, 1, &flt_type) Hci_req_add(req, HCI_OP_READ_CURRENT_IAC_LAP, 0, NULL) Hci_req_add(req, HCI_OP_READ_NUM_SUPPORTED_IAC, 0, NULL) Hci_req_add(req, HCI_OP_READ_VOICE_SETTING, 0, NULL) regzbot title net: bluetooth: Cambridge Silicon Radio, Ltd Bluetooth > Dongle unusable again with kernel 6.0 > regzbot ignore-activity regzbot inconclusive: some of this was fixed, some might still needs fixing, but itS tricky the bluetooth people are working on it afaics Ciao, Thorsten (wearing his the Linux kernels regression tracker. Hci_req_add(req, HCI_OP_READ_LOCAL_NAME, 0, NULL) Hci_req_add(req, HCI_OP_READ_CLASS_OF_DEV, 0, NULL) Hci_req_add(req, HCI_OP_READ_BUFFER_SIZE, 0, NULL) * Read Buffer Size (ACL mtu, max pkt, etc.) */ static void bredr_setup(struct hci_request *req) I solved my problem by comment the lines 296 and 297 of hci_core.c(plus patches). I don't know how to do that #define lmp_bredr_capable(dev). "Changing the #define lmp_bredr_capable(dev) in hci_core.h to return false did the trick." I: If#=0x1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusbīut even after patch, I'm getting the error below via hcidump: HCI Event: Command Complete (0x0e) plen 4 I: If#=0x0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb * Detect controllers which aren't real CSR ones.I've got a fake dongle BT 4.0 from china and try the procedure from this thread: Bluetooth dongle problem Distributor ID: Ubuntuĭevice: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) Le16_to_cpu(rp->lmp_subver) = 0x0c5c) */ /drivers/bluetooth" I had to comment out 2 if statements in btusb.c to force the conditional code to run (you can try fixing if statements if you're able), as such: /* Fake CSR devices with broken commands */ You should probably back up /lib/modules/$(uname -r)/kernel/drivers/bluetooth/btusb.ko before overwriting it. To get the source code into the current directory: apt-get source linux To fix this, I edited btusb.c and recompiled the btusb.ko kernel module. In one terminal, and while it's running, run sudo hciconfig hci0 upĪnd btmon should show an error after Delete Stored Link Key like : Status: Unsupported Feature or Parameter Value To see if this is the case for you, run: sudo btmon Bus 001 Device 006: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode) Bus 001 Device 003: ID 1a2c:407e China Resource Semico Co., Ltd USB Keyboard. the lsusb shows Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub. The fake ones have a bad return code for bt Delete Stored Link Key function. It shows the pendrive but i cant find drivers. Linux has code to deal with it, but it doesn't seem to work with all fake dongles. And it is mentioned here,Īpparently there are a lot of fake CSR dongles. Interestingly enough I purchased this device because it said it would work with a raspberry pi, so I thought that would mean it would work with other linux distros too. Sudo hciconfig hci0 up Can't init device hci0: Operation not supported (95) Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 TX bytes:2208 acl:0 sco:0 commands:180 errors:0įeatures: 0xff 0xff 0xcd 0xfa 0xdb 0xbf 0x7b 0x87 Bluetooth: BNEP socket layer initialized Bluetooth: BNEP filters: protocol multicast Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Bluetooth: hci0: command 0x2007 tx timeout Bluetooth: hci0: command 0x2003 tx timeout Bluetooth: L2CAP socket layer initialized Bluetooth: HCI device and connection manager initialized I have this device as per lsusb, Bus 001 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)ĭmesg | grep Bluetooth Bluetooth: Core ver 2.22 I am running ubuntu 19.04 and everything is up to date. The bluetooth UI just says there is no adapter. I am unable to use a USB bluetooth device. I need some help with a bluetooth problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |