Diff between 4cae55cbe65c1decd61e98a61bfa2467b52ac947 and e2d74dc8e943b7e62c2c099fe95caf66462b6b4c

Changed Files

File Additions Deletions Status
src/mgmt.c +0 -16 modified
src/mgmt.h +0 -1 modified

Full Patch

diff --git a/src/mgmt.c b/src/mgmt.c
index caaf2f6..39c6abf 100644
--- a/src/mgmt.c
+++ b/src/mgmt.c
@@ -2328,22 +2328,6 @@ int mgmt_read_clock(int index, const bdaddr_t *bdaddr, int which, int timeout,
 	return -ENOSYS;
 }
 
-int mgmt_read_bdaddr(int index, bdaddr_t *bdaddr)
-{
-	char addr[18];
-	struct controller_info *info = &controllers[index];
-
-	ba2str(&info->bdaddr, addr);
-	DBG("index %d addr %s", index, addr);
-
-	if (!info->valid)
-		return -ENODEV;
-
-	bacpy(bdaddr, &info->bdaddr);
-
-	return 0;
-}
-
 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 1ea8488..17f2f49 100644
--- a/src/mgmt.h
+++ b/src/mgmt.h
@@ -39,7 +39,6 @@ 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_read_bdaddr(int index, bdaddr_t *bdaddr);
 
 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);