summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-15 19:46:18 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-15 19:46:18 +0000
commit48e457f024ec0ee3fdf00687a26c2ffdf11ec1ca (patch)
treebd5e812fde9e60754d3488edeba502c38667a67f /hcid
parent8e34afe9cc4dada1c34126a9723f76d4a6705707 (diff)
Only update service classes for device that are up and running
Diffstat (limited to 'hcid')
-rw-r--r--hcid/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 59db359e..f75f6c1f 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -293,6 +293,9 @@ void update_service_classes(const bdaddr_t *bdaddr, uint8_t value)
if (hci_test_bit(HCI_RAW, &di.flags))
continue;
+ if (!hci_test_bit(HCI_UP, &di.flags))
+ continue;
+
if (get_device_class(di.dev_id, cls) < 0)
continue;