From bcb6af7fc78234948ba1c997825c8859464b170b Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 13 Jan 2009 17:29:53 +0200 Subject: 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. --- src/dbus-hci.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dbus-hci.c') 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) -- cgit