Diff between 7360177c91be9966e5cd7cc1476bda01ba78e4b7 and 9cdb2a664be39101ef837fe73f9bcef2d9201073

Changed Files

File Additions Deletions Status
src/adapter.c +1 -2 modified
src/mgmt.c +0 -12 modified
src/mgmt.h +0 -3 modified

Full Patch

diff --git a/src/adapter.c b/src/adapter.c
index bcd906e..aaae7c4 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 9fefb58..9e75389 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 a39a4ed..8fe149a 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);