summaryrefslogtreecommitdiffstats
path: root/src/dbus-hci.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 17:29:53 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-13 17:29:53 +0200
commitbcb6af7fc78234948ba1c997825c8859464b170b (patch)
tree319c58e814e656ddf7336b6404e1f90103acaf96 /src/dbus-hci.c
parent42e279efa41a0db453d9bc5405f3d713bd9937f2 (diff)
Don't do reverse SDP for renewed link keys
Add a flag for a renewed link key to the device struct so that when we get authentication complete we don't do reverse SDP or PropertyChanged(Paired, true) if a new bonding isn't being created.
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r--src/dbus-hci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c
index 5c5f1c6d..3577043b 100644
--- a/src/dbus-hci.c
+++ b/src/dbus-hci.c
@@ -937,6 +937,11 @@ void hcid_dbus_link_key_notify(bdaddr_t *local, bdaddr_t *peer,
return;
}
+ /* If this is not the first link key set a flag so a subsequent auth
+ * complete event doesn't trigger SDP */
+ if (old_key_type != 0xFF)
+ device_set_renewed_key(device, TRUE);
+
if (!device_is_connected(device))
device_set_secmode3_conn(device, TRUE);
else if (!device_is_bonding(device, NULL) && old_key_type == 0xFF)