d210d306d7
This patch adds a full HCI initialization routine to retrieve all relevant information from the controller. We also need to introduce a new blocking bt_hci_cmd_send_sync() API since some commands are conditional to the results of others. The API is implemented with the help of a semaphore that's part of the command's bt_buf struct. We wait on the semaphore and get it back once the command has completed (with the help of the hci_cmd_done function). The patch also adds variables for storing various controller specific parameters which will be needed later during the operation of the stack. These variables are part of 'struct bt_dev' and get updated through the respective command complete handlers. A new bt_hci_reset() API is added which allows an application to reset the controller state at any time by re-running the HCI init procedure. Change-Id: I5b1a38e910d79ad5fe806467bc51388eedc9c8f9 Co-authored-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> |
||
---|---|---|
.. | ||
bluetooth | ||
defs.objs |