Skip to contentSkip to conversation

Problem with the i-Tec dongle solved

Bluez-devel Marcel Holtmann 1 participant 1 message Mar 4, 2004

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

Hi Folks,

I got the problematic i-Tec dongle working. The important thing is to send a HCI_Reset as the first command at initialization. We don't do this, but I can't remember why not. Maybe there were some problematic chips in the early times of BlueZ. The attached patch is against 2.6.

And here is the new dongle:

hci0: Type: USB
BD Address: 00:03:C9:xx:xx:xx ACL MTU: 377:10 SCO MTU: 16:0
UP RUNNING PSCAN ISCAN
RX bytes:107 acl:0 sco:0 events:14 errors:0
TX bytes:303 acl:0 sco:0 commands:14 errors:0
Features: 0xff 0xff 0x0d 0x38 0x08 0x08 0x00 0x00
<3-slot packets> <5-slot packets> <encryption> <slot offset> <timing accuracy> <role switch> <hold mode> <sniff mode> <park state> <RSSI> <channel quality> <SCO link>
<HV2 packets> <HV3 packets> <u-law log> <A-law log>
<CVSD> <power control> <transparent SCO> <enhanced iscan> <interlaced iscan> <interlaced pscan> <AFH cap. slave> <AFH cap. master>
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'Broadcom BCM2035'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x69 LMP Ver: 1.1 (0x1) LMP Subver: 0xe00
Manufacturer: Broadcom Corporation (15)

The nice thing is that it already supports AFH ;)

Regards

Marcel

===== net/bluetooth/hci_core.c 1.25 vs edited =====

net/bluetooth/hci_core.c +3 -0
@@ -189,6 +189,9 @@
 
 	/* Mandatory initialization */
 
+	/* Reset */
+	hci_send_cmd(hdev, OGF_HOST_CTL, OCF_RESET, 0, NULL);
+
 	/* Read Local Supported Features */
 	hci_send_cmd(hdev, OGF_INFO_PARAM, OCF_READ_LOCAL_FEATURES, 0, NULL);