diff options
author | Alok Barsode <alok.barsode@azingo.com> | 2008-08-29 14:22:01 +0530 |
---|---|---|
committer | Alok Barsode <alok.barsode@azingo.com> | 2008-08-29 14:22:01 +0530 |
commit | aeecbf7e45383c48ccb4fd70417500e568cda3bb (patch) | |
tree | 2aa7d295f360fe6cffa329d05bbeccc21580c884 /src/dbus-hci.c | |
parent | 271183bccb0ac55f7fe3ae6b76211251387e3b5c (diff) |
Moving send_out_of_range to adapter.c
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r-- | src/dbus-hci.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 63978d84..175a69e4 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -816,20 +816,6 @@ static int found_device_req_name(struct adapter *adapter) return 0; } -static void send_out_of_range(const char *path, GSList *l) -{ - while (l) { - const char *peer_addr = l->data; - - g_dbus_emit_signal(connection, path, - ADAPTER_INTERFACE, "DeviceDisappeared", - DBUS_TYPE_STRING, &peer_addr, - DBUS_TYPE_INVALID); - - l = l->next; - } -} - void hcid_dbus_inquiry_complete(bdaddr_t *local) { struct adapter *adapter; @@ -846,12 +832,8 @@ void hcid_dbus_inquiry_complete(bdaddr_t *local) /* Out of range verification */ if ((adapter_get_state(adapter) & PERIODIC_INQUIRY) && - !(adapter_get_state(adapter) & STD_INQUIRY)) { - - send_out_of_range(path, adapter->oor_devices); + !(adapter_get_state(adapter) & STD_INQUIRY)) adapter_update_oor_devices(adapter); - } - /* * Enable resolution again: standard inquiry can be * received in the periodic inquiry idle state. |