bluetooth: Removed deprecated bt_set_id_addr function
The function have been deprecated for 2 releases so remove the code associated with it. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
932bc399ba
commit
3f149f0828
3 changed files with 2 additions and 33 deletions
|
@ -36,6 +36,8 @@ Removed APIs in this release
|
|||
* Removed support for the deprecated ``DEVICE_INIT`` and ``DEVICE_AND_API_INIT`` macros.
|
||||
* Removed support for the deprecated ``BUILD_ASSERT_MSG`` macro.
|
||||
* Removed support for the deprecated ``GET_ARG1``, ``GET_ARG2`` and ``GET_ARGS_LESS_1`` macros.
|
||||
* Removed support for the deprecated Kconfig ``PRINTK64`` option.
|
||||
* Removed support for the deprecated ``bt_set_id_addr`` function.
|
||||
|
||||
============================
|
||||
|
||||
|
|
|
@ -161,24 +161,6 @@ int bt_set_name(const char *name);
|
|||
*/
|
||||
const char *bt_get_name(void);
|
||||
|
||||
/**
|
||||
* @brief Set the local Identity Address
|
||||
*
|
||||
* Allows setting the local Identity Address from the application.
|
||||
* This API must be called before calling bt_enable(). Calling it at any
|
||||
* other time will cause it to fail. In most cases the application doesn't
|
||||
* need to use this API, however there are a few valid cases where
|
||||
* it can be useful (such as for testing).
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
__deprecated int bt_set_id_addr(const bt_addr_le_t *addr);
|
||||
|
||||
/**
|
||||
* @brief Get the currently configured identities.
|
||||
*
|
||||
|
|
|
@ -937,21 +937,6 @@ done:
|
|||
}
|
||||
#endif /* defined(CONFIG_BT_SMP) */
|
||||
|
||||
|
||||
int bt_set_id_addr(const bt_addr_le_t *addr)
|
||||
{
|
||||
bt_addr_le_t non_const_addr;
|
||||
|
||||
if (atomic_test_bit(bt_dev.flags, BT_DEV_READY)) {
|
||||
BT_ERR("Setting identity not allowed after bt_enable()");
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
bt_addr_le_copy(&non_const_addr, addr);
|
||||
|
||||
return bt_id_create(&non_const_addr, NULL);
|
||||
}
|
||||
|
||||
void bt_id_get(bt_addr_le_t *addrs, size_t *count)
|
||||
{
|
||||
if (addrs) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue