PebbleOS v4.47.0-372-gac5760587
Loading...
Searching...
No Matches

What the firmware does with the bonds the Bluetooth stack keeps. More...

Functions

void bt_bonding_init (void)
 Bring the stack's bonds and the PRF store in line, before the stack starts.
 
void bt_bonding_get_root_keys (struct pbl_bt_sm_key *keys)
 Get the root keys, generating them the first time.
 
bool bt_bonding_get_peer_name (const struct pbl_bt_device_internal *addr, char *name)
 Get the name of a bonded peer.
 
void bt_bonding_set_peer_name (const struct pbl_bt_device_internal *addr, const char *name)
 Store the name of a bonded peer.
 

Detailed Description

What the firmware does with the bonds the Bluetooth stack keeps.

Only one bond is kept, the phone's: bonding with a new peer deletes the others. It is copied to the PRF store, which the recovery firmware uses, and taken from there when the recovery firmware made it. The PRF store also has the phone's name and the root keys.

Function Documentation

◆ bt_bonding_get_peer_name()

bool bt_bonding_get_peer_name ( const struct pbl_bt_device_internal *  addr,
char *  name 
)

Get the name of a bonded peer.

Parameters
addrIdentity address of the peer.
[out]nameBuffer of PBL_BT_DEVICE_NAME_BUFFER_SIZE bytes.
Returns
True if a name is stored for the peer.

◆ bt_bonding_get_root_keys()

void bt_bonding_get_root_keys ( struct pbl_bt_sm_key *  keys)

Get the root keys, generating them the first time.

Parameters
[out]keysArray of PBL_BT_SM_ROOT_KEY_TYPE_NUM keys, indexed by key type.

◆ bt_bonding_init()

void bt_bonding_init ( void  )

Bring the stack's bonds and the PRF store in line, before the stack starts.

The pairing in the PRF store replaces the stack's bonds. Without one, the stack's bond is copied there.

◆ bt_bonding_set_peer_name()

void bt_bonding_set_peer_name ( const struct pbl_bt_device_internal *  addr,
const char *  name 
)

Store the name of a bonded peer.

Parameters
addrIdentity address of the peer.
nameThe name.