hci.c (e9e0704f0b9dc64cefb1c31ca4595a95a4c1e4d8) | hci.c (bcc59d6cd901fd07d4ded397b9cb4b1d8148201c) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 2866 unchanged lines hidden (view full) --- 2875 // log_info("hci_send_cmd: opcode %04x", cmd->opcode); 2876 hci_stack->last_cmd_opcode = cmd->opcode; 2877 2878 hci_reserve_packet_buffer(); 2879 uint8_t * packet = hci_stack->hci_packet_buffer; 2880 2881 va_list argptr; 2882 va_start(argptr, cmd); | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 2866 unchanged lines hidden (view full) --- 2875 // log_info("hci_send_cmd: opcode %04x", cmd->opcode); 2876 hci_stack->last_cmd_opcode = cmd->opcode; 2877 2878 hci_reserve_packet_buffer(); 2879 uint8_t * packet = hci_stack->hci_packet_buffer; 2880 2881 va_list argptr; 2882 va_start(argptr, cmd); |
2883 uint16_t size = hci_create_cmd_internal(packet, cmd, argptr); | 2883 uint16_t size = hci_cmd_create_from_template(packet, cmd, argptr); |
2884 va_end(argptr); 2885 2886 return hci_send_cmd_packet(packet, size); 2887} 2888 2889// Create various non-HCI events. 2890// TODO: generalize, use table similar to hci_create_command 2891 --- 658 unchanged lines hidden --- | 2884 va_end(argptr); 2885 2886 return hci_send_cmd_packet(packet, size); 2887} 2888 2889// Create various non-HCI events. 2890// TODO: generalize, use table similar to hci_create_command 2891 --- 658 unchanged lines hidden --- |