Skip to content

Commit

Permalink
Bluetooth: deprecate old HCI driver APIs
Browse files Browse the repository at this point in the history
Deprecate the bt_recv() and bt_hci_driver_register() APIs. There are no
more users in the tree itself, but we should let any out of tree users
migrate before removing these APIs completely.

Signed-off-by: Johan Hedberg <[email protected]>
  • Loading branch information
jhedberg authored and nashif committed Jun 11, 2024
1 parent 3ecd7db commit 21356bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/zephyr/drivers/bluetooth/hci_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ enum {
* @param buf Network buffer containing data from the controller.
*
* @return 0 on success or negative error number on failure.
*
* @deprecated Use the new HCI driver interface instead: @ref bt_hci_api
*/
int bt_recv(struct net_buf *buf);
__deprecated int bt_recv(struct net_buf *buf);

/** Possible values for the 'bus' member of the bt_hci_driver struct */
enum bt_hci_driver_bus {
Expand Down Expand Up @@ -154,8 +156,10 @@ struct bt_hci_driver {
* @param drv A bt_hci_driver struct representing the driver.
*
* @return 0 on success or negative error number on failure.
*
* @deprecated Use the new HCI driver interface instead: @ref bt_hci_api
*/
int bt_hci_driver_register(const struct bt_hci_driver *drv);
__deprecated int bt_hci_driver_register(const struct bt_hci_driver *drv);

/**
* @brief Setup the HCI transport, which usually means to reset the
Expand Down

0 comments on commit 21356bc

Please sign in to comment.