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 <armin.brauns@embedded-solutions.at>
This commit is contained in:
parent
f810e1318f
commit
6ba6c66ab5
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ static int bt_spi_send_aci_config(uint8_t offset, const uint8_t *value, size_t v
|
|||
#if defined(CONFIG_BT_HCI_RAW)
|
||||
return bt_send(buf);
|
||||
#else
|
||||
return bt_hci_cmd_send(BLUENRG_ACI_WRITE_CONFIG_DATA, buf);
|
||||
return bt_hci_cmd_send_sync(BLUENRG_ACI_WRITE_CONFIG_DATA, buf, NULL);
|
||||
#endif /* CONFIG_BT_HCI_RAW */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue