From: Szymon Janc <szymon@xxxxxxxxxxx> This was used in hciops only. With mgmt interface remote CoD is received in EIR from Device Found/Connected events. --- src/event.c | 22 ---------------------- src/event.h | 1 - 2 files changed, 23 deletions(-) diff --git a/src/event.c b/src/event.c index 84c7f88..0ebab19 100644 --- a/src/event.c +++ b/src/event.c @@ -280,28 +280,6 @@ void btd_event_set_legacy_pairing(bdaddr_t *local, bdaddr_t *peer, dev->legacy = legacy; } -void btd_event_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t class) -{ - struct btd_adapter *adapter; - struct btd_device *device; - uint32_t old_class = 0; - - read_remote_class(local, peer, &old_class); - - if (old_class == class) - return; - - write_remote_class(local, peer, class); - - if (!get_adapter_and_device(local, peer, &adapter, &device, FALSE)) - return; - - if (!device) - return; - - device_set_class(device, class); -} - void btd_event_remote_name(bdaddr_t *local, bdaddr_t *peer, char *name) { struct btd_adapter *adapter; diff --git a/src/event.h b/src/event.h index 6d001dd..6adf1f5 100644 --- a/src/event.h +++ b/src/event.h @@ -27,7 +27,6 @@ void btd_event_device_found(bdaddr_t *local, bdaddr_t *peer, uint8_t bdaddr_type int8_t rssi, uint8_t confirm_name, uint8_t *data, uint8_t data_len); void btd_event_set_legacy_pairing(bdaddr_t *local, bdaddr_t *peer, gboolean legacy); -void btd_event_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t class); void btd_event_remote_name(bdaddr_t *local, bdaddr_t *peer, char *name); void btd_event_conn_complete(bdaddr_t *local, bdaddr_t *peer, uint8_t bdaddr_type, char *name, uint32_t class); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html