Commit 21356bc7 authored by Johan Hedberg's avatar Johan Hedberg Committed by Anas Nashif
Browse files

Bluetooth: deprecate old HCI driver APIs

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: default avatarJohan Hedberg <johan.hedberg@silabs.com>
parent 3ecd7dbd
Loading
Loading
Loading
Loading
+6 −2
Changes for include/zephyr/drivers/bluetooth/hci_driver.h: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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 {
@@ -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