Bluetooth: smp: Adding Legacy OOB pairing support
Added support for Legacy pairing using OOB Temporary Key Signed-off-by: Iván Morales <ivan98ams@gmail.com>
This commit is contained in:
parent
5af5bcb2b8
commit
cc0d2447f1
4 changed files with 77 additions and 5 deletions
|
@ -618,6 +618,20 @@ void bt_set_bondable(bool enable);
|
|||
*/
|
||||
void bt_set_oob_data_flag(bool enable);
|
||||
|
||||
/**
|
||||
* @brief Set OOB Temporary Key to be used for pairing
|
||||
*
|
||||
* This function allows to set OOB data for the LE legacy pairing procedure. The
|
||||
* function should only be called in response to the oob_data_request() callback
|
||||
* provided that the legacy method is user pairing.
|
||||
*
|
||||
* @param conn Connection object
|
||||
* @param tk Pointer to 16 byte long TK array
|
||||
*
|
||||
* @return Zero on success or -EINVAL if NULL
|
||||
*/
|
||||
int bt_le_oob_set_legacy_tk(struct bt_conn *conn, const u8_t *tk);
|
||||
|
||||
/**
|
||||
* @brief Set OOB data during LE SC pairing procedure
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue