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 <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2024-01-05 13:09:45 +01:00
parent 129e023548
commit c5b53c9765
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,12 @@ set_btaddr() {
set_power_config() { set_power_config() {
sh -e /lib/firmware/nxp/bt_power_config_US_CA_JP.sh 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() { is_kernel_module_loaded() {