This commit is contained in:
anonymou0719 2026-01-19 11:33:00 +00:00 committed by GitHub
commit 0c0adc3036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -679,6 +679,13 @@ BTBondingID bt_persistent_storage_store_ble_pairing(const SMPairingInfo *new_pai
if (is_gateway && status == GapBondingFileSetUpdated) { if (is_gateway && status == GapBondingFileSetUpdated) {
prv_update_bondings(key, BtPersistBondingTypeBLE); prv_update_bondings(key, BtPersistBondingTypeBLE);
} }
// In practice we only support a single BLE pairing at a time, so if we add a new one,
// set ourselves as unfaithful.
if (op == BtPersistBondingOpDidAdd) {
bt_persistent_storage_set_unfaithful(true);
}
prv_call_ble_bonding_change_handlers(key, op); prv_call_ble_bonding_change_handlers(key, op);
return key; return key;