Skip to content

Commit 41422f9

Browse files
erwangocarlescufi
authored andcommitted
drivers: bluetooth: hci: stm32wb: Take advantage of host drivern reset
Don't perform HCI reset in the driver but get the host to perform it. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent af3065d commit 41422f9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/bluetooth/hci/ipm_stm32wb.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -501,13 +501,6 @@ static int bt_ipm_ble_init(void)
501501
struct net_buf *buf, *rsp;
502502
int err;
503503

504-
/* Send HCI_RESET */
505-
err = bt_hci_cmd_send_sync(BT_HCI_OP_RESET, NULL, &rsp);
506-
if (err) {
507-
return err;
508-
}
509-
/* TDB: Something to do on reset complete? */
510-
net_buf_unref(rsp);
511504
err = bt_ipm_set_addr();
512505
if (err) {
513506
BT_ERR("Can't set BLE UID addr");
@@ -614,7 +607,6 @@ static int bt_ipm_close(void)
614607
static const struct bt_hci_driver drv = {
615608
.name = "BT IPM",
616609
.bus = BT_HCI_DRIVER_BUS_IPM,
617-
.quirks = BT_QUIRK_NO_RESET,
618610
.open = bt_ipm_open,
619611
.close = bt_ipm_close,
620612
.send = bt_ipm_send,

0 commit comments

Comments
 (0)