|
PebbleOS v4.47.0-372-gac5760587
|
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. | |
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.
| bool bt_bonding_get_peer_name | ( | const struct pbl_bt_device_internal * | addr, |
| char * | name | ||
| ) |
Get the name of a bonded peer.
| addr | Identity address of the peer. | |
| [out] | name | Buffer of PBL_BT_DEVICE_NAME_BUFFER_SIZE bytes. |
| void bt_bonding_get_root_keys | ( | struct pbl_bt_sm_key * | keys | ) |
Get the root keys, generating them the first time.
| [out] | keys | Array of PBL_BT_SM_ROOT_KEY_TYPE_NUM keys, indexed by key type. |
| 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.
| void bt_bonding_set_peer_name | ( | const struct pbl_bt_device_internal * | addr, |
| const char * | name | ||
| ) |
Store the name of a bonded peer.
| addr | Identity address of the peer. |
| name | The name. |