Bluetooth: Host: Add option to force pairing in bt_conn_security
Add option to force the host to initiate pairing procedure even if the host has encryption keys for the peer. This option can be used to pair with a bonded peer that has deleted its bonding information without deleting the keys. If new pairing results in weaker keys the pairing will be aborted. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
6d4b842a10
commit
128cf42d8a
4 changed files with 12 additions and 1 deletions
|
@ -288,6 +288,10 @@ typedef enum __packed {
|
|||
BT_SECURITY_HIGH,
|
||||
/** Authenticated Secure Connections */
|
||||
BT_SECURITY_FIPS,
|
||||
/** Bit to force new pairing procedure, bit-wise OR with requested
|
||||
* security level.
|
||||
*/
|
||||
BT_SECURITY_FORCE_PAIR = BIT(7),
|
||||
} bt_security_t;
|
||||
|
||||
/** @brief Set security level for a connection.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue