Bluetooth: Add run-time option to disable SMP bondable mode
This adds a function that will disable Bonding flag in Authentication Requirements flag in SMP Pairing Request/Response. This is needed for qualification purposes. Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
7ff9eeea0e
commit
4f74f69814
2 changed files with 24 additions and 0 deletions
|
@ -386,6 +386,18 @@ struct bt_conn_cb {
|
|||
*/
|
||||
void bt_conn_cb_register(struct bt_conn_cb *cb);
|
||||
|
||||
/** Enable/disable bonding.
|
||||
*
|
||||
* Set/clear the Bonding flag in the Authentication Requirements of
|
||||
* SMP Pairing Request/Response data.
|
||||
* The initial value of this flag depends on BT_BONDABLE Kconfig setting.
|
||||
* For the vast majority of applications calling this function shouldn't be
|
||||
* needed.
|
||||
*
|
||||
* @param enable Value allowing/disallowing to be bondable.
|
||||
*/
|
||||
void bt_set_bondable(bool enable);
|
||||
|
||||
/** @def BT_PASSKEY_INVALID
|
||||
*
|
||||
* Special passkey value that can be used to disable a previously
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue