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:
Joakim Andersson 2021-01-19 15:38:37 +01:00 committed by Anas Nashif
commit b20b5c0d44
2 changed files with 9 additions and 1 deletions

View file

@ -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.