Bluetooth: host: Deprecate the bt_set_id_addr API function
Deprecate the bt_set_id_addr API function. This is merely a wrapper for the bt_id_create function now, except an IRK cannot be given. When CONFIG_BT_PRIVACY is enabled an IRK has to be given by the application because the bt_rand function cannot be called before bt_enable. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
dc1dcb74b1
commit
b20b5c0d44
2 changed files with 9 additions and 1 deletions
|
@ -93,6 +93,12 @@ Deprecated in this release
|
|||
* DEVICE_AND_API_INIT was deprecated in favor of DEVICE_DT_INST_DEFINE and
|
||||
DEVICE_DEFINE.
|
||||
|
||||
* Bluetooth
|
||||
|
||||
* Deprecated the :c:func:`bt_set_id_addr` function, use :c:func:`bt_id_create`
|
||||
before calling :c:func:`bt_enable` instead. When ``CONFIG_PRIVACY`` is
|
||||
enabled a valid IRK has to be supplied by the application for this case.
|
||||
|
||||
Removed APIs in this release
|
||||
============================
|
||||
|
||||
|
|
|
@ -163,9 +163,11 @@ const char *bt_get_name(void);
|
|||
* At the moment, the given address must be a static random address. In the
|
||||
* future support for public addresses may be added.
|
||||
*
|
||||
* @deprecated in 2.5 release, replace with bt_id_create before bt_enable.
|
||||
*
|
||||
* @return Zero on success or (negative) error code otherwise.
|
||||
*/
|
||||
int bt_set_id_addr(const bt_addr_le_t *addr);
|
||||
__deprecated int bt_set_id_addr(const bt_addr_le_t *addr);
|
||||
|
||||
/**
|
||||
* @brief Get the currently configured identities.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue