From 589b687e3eaa185c445b0c9413a91cc90fc8a562 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 12 Feb 2009 22:19:08 +0100 Subject: Update comments on when to store link keys --- src/dbus-hci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 6d6696f2..5ced560f 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -923,9 +923,11 @@ int hcid_dbus_link_key_notify(bdaddr_t *local, bdaddr_t *peer, /* Only store the link key if one of the following is true: * 1. this is a legacy link key * 2. this is a changed combination key and there was a previously - * stored one + * stored one * 3. neither local nor remote side had no-bonding as a requirement * 4. the local side had dedicated bonding as a requirement + * 5. the remote side is using dedicated bonding since in that case + * also the local requirements are set to dedicated bonding */ if (key_type < 0x03 || (key_type == 0x06 && old_key_type != 0xff) || (local_auth > 0x01 && remote_auth > 0x01) || -- cgit