OSDN Git Service

core: Remove unused mgmt_read_bdaddr function
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jan 2013 12:33:37 +0000 (14:33 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jan 2013 12:33:37 +0000 (14:33 +0200)
src/mgmt.c
src/mgmt.h

index caaf2f6..39c6abf 100644 (file)
@@ -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)];
index 1ea8488..17f2f49 100644 (file)
@@ -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);