zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.94k stars 6.65k forks source link

Bluetooth: hci: h4: weak bt_hci_transport_setup down and h4_close function missing #51369

Open eSTChristopheU opened 2 years ago

eSTChristopheU commented 2 years ago

Describe the bug

The h4_close() function is not available into zephyr 3.2.0, into the bluetooth drivers (hci, h4.c)

I need to use bt_enale() then bt_disable() then bt_enable() and I need to close properly the HCI external controller.

Do you plan to improve the h4.c file to propose the h4_close() and an equivalent weak function (bt_hci_transport_setup) ?

My setup: zephyr 3.2.0 STM32U585 as BT peripheral connected to an Espressif ESP32-C3 mini using an HCI UARTcontroller firmware (controller_hci_uart_esp32c3_and_esp32s3)

zephyrbot commented 9 months ago

Hi @jhedberg,

This issue, marked as an Enhancement, was opened a while ago and did not get any traction. It was just assigned to you based on the labels. If you don't consider yourself the right person to address this issue, please re-assing it to the right person.

Please take a moment to review if the issue is still relevant to the project. If it is, please provide feedback and direction on how to move forward. If it is not, has already been addressed, is a duplicate, or is no longer relevant, please close it with a short comment explaining the reason.

@eSTChristopheU you are also encouraged to help moving this issue forward by providing additional information and confirming this request/issue is still relevant to you.

Thanks!

Miceuz commented 2 months ago

I am experiencing the same issue. I'd like to shut down bluetooth while I'm not using it.

jhedberg commented 2 months ago

@eSTChristopheU @Miceuz there are no plans to add such functionality from my side, but the contribution is welcome if you'd like to work on it. If not, I think it's better to close this enhancement request.