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 ac1e4633fb.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2023-05-02 12:51:59 +02:00
parent fd5ee3a5e3
commit 803945c080
1 changed files with 0 additions and 18 deletions

View File

@ -24,21 +24,6 @@ set_btaddr() {
hcitool -i ${HCI_IFACE} cmd 0x3f 0x0022 0xfe 0x06 ${bt_addr} 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() { bluetooth_start() {
if ! [ -e "/proc/device-tree/bluetooth/mac-address" ]; then if ! [ -e "/proc/device-tree/bluetooth/mac-address" ]; then
log "[ERROR] Bluetooth mac-address not found" log "[ERROR] Bluetooth mac-address not found"
@ -62,9 +47,6 @@ bluetooth_start() {
fi fi
hciattach -t5 /dev/ttyBt any -s 3000000 3000000 flow && \ hciattach -t5 /dev/ttyBt any -s 3000000 3000000 flow && \
hciconfig ${HCI_IFACE} up && \
sleep 0.2 && \
le_fix && \
log "Bluetooth activated" && return log "Bluetooth activated" && return
log "[ERROR] Cannot initialize Bluetooth" log "[ERROR] Cannot initialize Bluetooth"