From 803945c0801d59d8577e34d08e4715f725b7d563 Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Tue, 2 May 2023 12:51:59 +0200 Subject: [PATCH] Revert "bluez5-init: ccimx93: add fix to enable LE" Masking the extended advertising flag makes the hcitool lescan work, but triggers functionality problem such as bluetoothctl scanning or extended advertisement not working. Do not mask it, so use bluetoothctl scan instead of hcitool lescan to discover LE devices. This reverts commit ac1e4633fbc40f3cab62d3f71e3d959a62be0401. Signed-off-by: Isaac Hermida --- .../bluez/bluez5-init/ccimx93/bluetooth-init | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/meta-digi-dey/recipes-connectivity/bluez/bluez5-init/ccimx93/bluetooth-init b/meta-digi-dey/recipes-connectivity/bluez/bluez5-init/ccimx93/bluetooth-init index 497f53fea..54f288b76 100644 --- a/meta-digi-dey/recipes-connectivity/bluez/bluez5-init/ccimx93/bluetooth-init +++ b/meta-digi-dey/recipes-connectivity/bluez/bluez5-init/ccimx93/bluetooth-init @@ -24,21 +24,6 @@ set_btaddr() { hcitool -i ${HCI_IFACE} cmd 0x3f 0x0022 0xfe 0x06 ${bt_addr} } -le_fix() { - hcitool -i ${HCI_IFACE} cmd 0x03 0x0003 - sleep 0.2 - hcitool -i ${HCI_IFACE} cmd 0x03 0x0001 ff ff ff ff ff ff 3f ff - sleep 0.2 - hcitool -i ${HCI_IFACE} cmd 0x08 0x0001 ff ff 7f 00 00 00 00 00 - sleep 0.2 - hcitool -i ${HCI_IFACE} cmd 0x08 0x000B 01 10 00 10 00 00 00 - sleep 0.2 - hcitool -i ${HCI_IFACE} cmd 0x08 0x000C 01 01 - sleep 0.2 - hcitool -i ${HCI_IFACE} cmd 0x08 0x000C 00 00 - sleep 0.2 -} - bluetooth_start() { if ! [ -e "/proc/device-tree/bluetooth/mac-address" ]; then log "[ERROR] Bluetooth mac-address not found" @@ -62,9 +47,6 @@ bluetooth_start() { fi hciattach -t5 /dev/ttyBt any -s 3000000 3000000 flow && \ - hciconfig ${HCI_IFACE} up && \ - sleep 0.2 && \ - le_fix && \ log "Bluetooth activated" && return log "[ERROR] Cannot initialize Bluetooth"