From 9cdb2a664be39101ef837fe73f9bcef2d9201073 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 5 Jan 2013 00:13:05 -0800 Subject: [PATCH] core: Don't pretend there is a management command for reading the clock --- src/adapter.c | 3 +-- src/mgmt.c | 12 ------------ src/mgmt.h | 3 --- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/adapter.c b/src/adapter.c index bcd906e85..aaae7c445 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -3832,8 +3832,7 @@ int btd_adapter_read_clock(struct btd_adapter *adapter, const bdaddr_t *bdaddr, if (!mgmt_powered(adapter->current_settings)) return -EINVAL; - return mgmt_read_clock(adapter->dev_id, bdaddr, which, - timeout, clock, accuracy); + return -ENOSYS; } int btd_adapter_disconnect_device(struct btd_adapter *adapter, diff --git a/src/mgmt.c b/src/mgmt.c index 9fefb5806..9e75389ab 100644 --- a/src/mgmt.c +++ b/src/mgmt.c @@ -1616,18 +1616,6 @@ int mgmt_stop_discovery(int index) return 0; } -int mgmt_read_clock(int index, const bdaddr_t *bdaddr, int which, int timeout, - uint32_t *clock, uint16_t *accuracy) -{ - char addr[18]; - - ba2str(bdaddr, addr); - DBG("index %d addr %s which %d timeout %d", index, addr, which, - timeout); - - return -ENOSYS; -} - int mgmt_block_device(int index, const bdaddr_t *bdaddr, uint8_t bdaddr_type) { char buf[MGMT_HDR_SIZE + sizeof(struct mgmt_cp_block_device)]; diff --git a/src/mgmt.h b/src/mgmt.h index a39a4edcd..8fe149a23 100644 --- a/src/mgmt.h +++ b/src/mgmt.h @@ -29,9 +29,6 @@ int mgmt_start_discovery(int index); int mgmt_start_le_scanning(int index); int mgmt_stop_discovery(int index); -int mgmt_read_clock(int index, const bdaddr_t *bdaddr, int which, int timeout, - uint32_t *clock, uint16_t *accuracy); - int mgmt_block_device(int index, const bdaddr_t *bdaddr, uint8_t bdaddr_type); int mgmt_unblock_device(int index, const bdaddr_t *bdaddr, uint8_t bdaddr_type); -- 2.47.3