diff --git a/include/bluetooth/bluetooth.h b/include/bluetooth/bluetooth.h index 1bca392af02..269b4987825 100644 --- a/include/bluetooth/bluetooth.h +++ b/include/bluetooth/bluetooth.h @@ -135,16 +135,6 @@ int bt_start_scanning(bt_scan_filter_dup_t filter, bt_le_scan_cb_t cb); */ int bt_stop_scanning(void); -/** Security level. */ -typedef enum { - BT_SECURITY_LOW, /** No encryption and no authentication. */ - BT_SECURITY_MEDIUM, /** encryption and no authentication (no MITM). */ - BT_SECURITY_HIGH, /** encryption and authentication (MITM). */ - BT_SECURITY_FIPS, /** Authenticated LE Secure Connections and - * encryption. - */ -} bt_security_t; - /** @def BT_ADDR_STR_LEN * * @brief Recommended length of user string buffer for Bluetooth address diff --git a/include/bluetooth/conn.h b/include/bluetooth/conn.h index 667aeec11b7..4eb1992d229 100644 --- a/include/bluetooth/conn.h +++ b/include/bluetooth/conn.h @@ -36,7 +36,6 @@ #include -#include #include /** Opaque type representing a connection to a remote device */ @@ -103,6 +102,16 @@ int bt_conn_disconnect(struct bt_conn *conn, uint8_t reason); */ struct bt_conn *bt_conn_create_le(const bt_addr_le_t *peer); +/** Security level. */ +typedef enum { + BT_SECURITY_LOW, /** No encryption and no authentication. */ + BT_SECURITY_MEDIUM, /** encryption and no authentication (no MITM). */ + BT_SECURITY_HIGH, /** encryption and authentication (MITM). */ + BT_SECURITY_FIPS, /** Authenticated LE Secure Connections and + * encryption. + */ +} bt_security_t; + /** @brief Set security level for a connection. * * This function enable security (encryption) for a connection. If device is