Lines Matching full:resp
67 command_complete_t resp;
69 FAILIF(read_hci_event(fd, (unsigned char *)&resp, sizeof(resp)) < 0,
73 FAILIF(resp.uart_prefix != HCI_EVENT_PKT,
75 resp.uart_prefix);
77 FAILIF(resp.hci_hdr.evt != EVT_CMD_COMPLETE, /* event must be event-complete */
79 "but 0x%02x!\n", resp.hci_hdr.evt);
81 FAILIF(resp.hci_hdr.plen < 4, /* plen >= 4 for EVT_CMD_COMPLETE */
83 resp.hci_hdr.plen);
86 FAILIF(resp.cmd_complete.opcode != (uint16_t)opcode,
88 resp.cmd_complete.opcode, opcode);
90 return resp.status == 0 ? 0 : -1;
196 unsigned char resp[100]; /* Response */
199 memset(resp,'\0', 100);
223 if (read_hci_event(fd, resp, 100) < 0) {
229 } while (resp[4] != cmd[1] && resp[5] != cmd[2]);
232 if ((resp[11] & 0xFF) != 0x0d)
236 fprintf(stderr, "Texas module LMP version : 0x%02x\n", resp[10] & 0xFF);
240 unsigned short lmp_subv = resp[13] | (resp[14] << 8);