Lines Matching refs:dev_list
83 struct hci_dev_list_req *dev_list;
99 dev_list = malloc(HCI_MAX_DEV * sizeof(*dev_req) + sizeof(*dev_list));
100 if (!dev_list)
103 HCI_MAX_DEV * sizeof(*dev_req) + sizeof(*dev_list));
108 dev_list->dev_num = HCI_MAX_DEV;
110 if (ioctl(sock, HCIGETDEVLIST, (void *) dev_list) < 0)
119 dev_req = dev_list->dev_req;
120 for (i = 0; i < dev_list->dev_num; i++, dev_req++) {
136 free(dev_list);