From c5b53c976507b17b13f8de5ebe4a99372d73f647 Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Fri, 5 Jan 2024 13:09:45 +0100 Subject: [PATCH] ccimx93: bluetooth-init: re-initilize the LE support after hci reset for the IW61x, when the FW is instructed with an hci reset command, the LE stack is not correctly reset. It can be workaround-ed by SW doing a SW power cycle. Signed-off-by: Isaac Hermida --- .../bluez/bluez5-init/ccimx93/bluetooth-init | 6 ++++++ 1 file changed, 6 insertions(+) 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 7d4b630d9..ac3469e05 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 @@ -42,6 +42,12 @@ set_btaddr() { set_power_config() { sh -e /lib/firmware/nxp/bt_power_config_US_CA_JP.sh + + # The bash script resets the HCI interface, and currenlty it breaks + # the LE support. Until it is fixed in the FW, workaround it by doing + # a SW power cycle of the stack. + btmgmt -i ${HCI_IFACE} power off + btmgmt -i ${HCI_IFACE} power on } is_kernel_module_loaded() {