Skip to content

Commit c43a780

Browse files
facchinmpillo79
authored andcommitted
bt: cyw43xxx: don't expose set_baudrate if HCI_RAW
1 parent 0745b73 commit c43a780

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/bluetooth/hci/h4_ifx_cyw43xxx.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ enum {
6666
*/
6767
int bt_h4_vnd_setup(const struct device *dev);
6868

69+
#if CONFIG_BT_HCI_HOST
70+
6971
static int bt_hci_uart_set_baudrate(const struct device *bt_uart_dev, uint32_t baudrate)
7072
{
7173
struct uart_config uart_cfg;
@@ -204,6 +206,7 @@ static int bt_firmware_download(const uint8_t *firmware_image, uint32_t size)
204206
LOG_DBG("Fw downloading complete");
205207
return 0;
206208
}
209+
#endif
207210

208211
int bt_h4_vnd_setup(const struct device *dev)
209212
{
@@ -259,6 +262,7 @@ int bt_h4_vnd_setup(const struct device *dev)
259262
}
260263
}
261264

265+
#if CONFIG_BT_HCI_HOST
262266
/* Send HCI_RESET */
263267
err = bt_hci_cmd_send_sync(BT_HCI_OP_RESET, NULL, NULL);
264268
if (err) {
@@ -306,6 +310,9 @@ int bt_h4_vnd_setup(const struct device *dev)
306310
return err;
307311
}
308312
}
313+
#else
314+
(void)k_msleep(BT_STABILIZATION_DELAY_MS);
315+
#endif
309316

310317
return 0;
311318
}

0 commit comments

Comments
 (0)