Save link_key in CTKD over BR/EDR

Since keystore.update() overwrites all existing keys, the existing link
key will be wiped out. To avoid this, SMP also need to keep the key.
This commit is contained in:
Josh Wu
2024-01-17 19:25:04 +08:00
parent 46ceea7ecd
commit acd9d994c3
2 changed files with 12 additions and 3 deletions
+7
View File
@@ -547,6 +547,13 @@ async def test_self_smp_over_classic():
MockSmpSession.send_public_key_command.assert_not_called()
MockSmpSession.send_pairing_random_command.assert_not_called()
for i in range(2):
assert (
await two_devices.devices[i].keystore.get(
str(two_devices.connections[i].peer_address)
)
).link_key
# -----------------------------------------------------------------------------
@pytest.mark.asyncio