diff options
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/main.c | 3 |
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; |