diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-25 22:34:16 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-09-25 22:34:16 -0700 |
commit | 68b27e68b50b1e68d663142d2b0432c435329ea6 (patch) | |
tree | f0bbacbff8d42cc5385be276043fc6826e1ff6d2 /src/dbus-hci.c | |
parent | 35c7f1a0155e675c37c4e258c50ed4e49b3ae4f6 (diff) |
Move more pairing and discovery initiation logic into device.c
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r-- | src/dbus-hci.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 465f2bde..e480eb7e 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -547,26 +547,7 @@ void hcid_dbus_bonding_process_complete(bdaddr_t *local, bdaddr_t *peer, /* If this is a new pairing send the appropriate signal for it * and proceed with service discovery */ if (status == 0) { - const char *dev_path; - dbus_bool_t paired = TRUE; - - device_set_temporary(device, FALSE); - dev_path = device_get_path(device); - - dbus_connection_emit_property_changed(connection, dev_path, - DEVICE_INTERFACE, "Paired", - DBUS_TYPE_BOOLEAN, &paired); - - /* If we were initiators start service discovery immediately. - * However if the other end was the initator wait a few seconds - * before SDP. This is due to potential IOP issues if the other - * end starts doing SDP at the same time as us */ - if (bonding) - device_browse(device, bonding->conn, - bonding->msg, NULL); - else - device_schedule_service_discovery(device); - + device_set_paired(connection, device, bonding); return; } |