diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-06-28 23:10:00 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-06-28 23:10:00 +0200 |
commit | 00fa756b5d5ff1a5c1a4ce2dd8dc4e9732de582c (patch) | |
tree | 621a7afe1533bc224f05f90d15416c8b30f25ae8 /tools/hciconfig.c | |
parent | 73de6ea5fea0b0de37de6395ca5aad143adc32f7 (diff) | |
download | bluez-00fa756b5d5ff1a5c1a4ce2dd8dc4e9732de582c.tar.gz |
tools: Don't try to read BD_ADDR manually for raw devices
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r-- | tools/hciconfig.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index a7d480f2a..8ec1e8aa2 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -76,12 +76,6 @@ static void print_dev_list(int ctl, int flags) di.dev_id = (dr+i)->dev_id; if (ioctl(ctl, HCIGETDEVINFO, (void *) &di) < 0) continue; - if (hci_test_bit(HCI_RAW, &di.flags) && - !bacmp(&di.bdaddr, BDADDR_ANY)) { - int dd = hci_open_dev(di.dev_id); - hci_read_bd_addr(dd, &di.bdaddr, 1000); - hci_close_dev(dd); - } print_dev_info(ctl, &di); } } @@ -2017,13 +2011,6 @@ int main(int argc, char *argv[]) exit(1); } - if (hci_test_bit(HCI_RAW, &di.flags) && - !bacmp(&di.bdaddr, BDADDR_ANY)) { - int dd = hci_open_dev(di.dev_id); - hci_read_bd_addr(dd, &di.bdaddr, 1000); - hci_close_dev(dd); - } - while (argc > 0) { for (i = 0; command[i].cmd; i++) { if (strncmp(command[i].cmd, |