diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-04-07 12:13:13 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-04-09 11:37:05 +0300 |
commit | 8fd334315e5a78a490c5ec89c56fa8a484439379 (patch) | |
tree | d178e162987f74a57562cd2a75bef67356229b52 /src | |
parent | 378a836e43518b4d05e06c40e3130d507b24fbf4 (diff) | |
download | bluez-8fd334315e5a78a490c5ec89c56fa8a484439379.tar.gz |
Simplify Manager.ListAdapters.
By removing the unnecessary check we also make it more consistent with
Manager.GetPropeties return for "Adapters".
Diffstat (limited to 'src')
-rw-r--r-- | src/manager.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/manager.c b/src/manager.c index f3b8e88a..761affbd 100644 --- a/src/manager.c +++ b/src/manager.c @@ -180,7 +180,6 @@ static DBusMessage *list_adapters(DBusConnection *conn, DBusMessageIter array_iter; DBusMessage *reply; GSList *l; - uint16_t dev_id; reply = dbus_message_new_method_return(msg); if (!reply) @@ -193,17 +192,8 @@ static DBusMessage *list_adapters(DBusConnection *conn, for (l = adapters; l; l = l->next) { struct btd_adapter *adapter = l->data; - struct hci_dev_info di; const gchar *path = adapter_get_path(adapter); - dev_id = adapter_get_dev_id(adapter); - - if (hci_devinfo(dev_id, &di) < 0) - continue; - - if (hci_test_bit(HCI_RAW, &di.flags)) - continue; - dbus_message_iter_append_basic(&array_iter, DBUS_TYPE_OBJECT_PATH, &path); } |