Skip to content

Commit 6ba6c66

Browse files
arbraunsfabiobaltieri
authored andcommitted
hci_spi_st: send ACI config synchronously
There's no reason to send these async, and since the reply isn't waited for anywhere, this can cause the HCI buffer pool to be exhausted and `bt_enable()` to fail. Signed-off-by: Armin Brauns <[email protected]>
1 parent f810e13 commit 6ba6c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bluetooth/hci/hci_spi_st.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static int bt_spi_send_aci_config(uint8_t offset, const uint8_t *value, size_t v
350350
#if defined(CONFIG_BT_HCI_RAW)
351351
return bt_send(buf);
352352
#else
353-
return bt_hci_cmd_send(BLUENRG_ACI_WRITE_CONFIG_DATA, buf);
353+
return bt_hci_cmd_send_sync(BLUENRG_ACI_WRITE_CONFIG_DATA, buf, NULL);
354354
#endif /* CONFIG_BT_HCI_RAW */
355355
}
356356

0 commit comments

Comments
 (0)