Bluetooth: host: remove deprecated bt_conn_security function

Remove the deprecated bt_conn_security function.
This has been deprecated in the 2.3.0 release.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2021-01-20 16:39:11 +01:00 committed by Anas Nashif
commit 016b580beb
2 changed files with 2 additions and 6 deletions

View file

@ -107,6 +107,8 @@ Removed APIs in this release
use bt_conn_le_create_auto() instead.
* The deprecated BT_LE_ADV_* macros have been removed,
use the BT_GAP_ADV_* enums instead.
* The deprecated bt_conn_security function has been removed,
use bt_conn_set_security instead.
* The deprecated BT_SECURITY_* defines NONE, LOW, MEDIUM, HIGH, FIPS have been
removed, use the L0, L1, L2, L3, L4 defines instead.
* The deprecated BT_HCI_ERR_AUTHENTICATION_FAIL define has been removed,

View file

@ -748,12 +748,6 @@ int bt_conn_set_security(struct bt_conn *conn, bt_security_t sec);
*/
bt_security_t bt_conn_get_security(struct bt_conn *conn);
static inline int __deprecated bt_conn_security(struct bt_conn *conn,
bt_security_t sec)
{
return bt_conn_set_security(conn, sec);
}
/** @brief Get encryption key size.
*
* This function gets encryption key size.