hci.c (9d14b626ad06490ead7cd1d9e4ae519fa5899ef7) hci.c (5fa0b7cf47d76fbd84ba72f883916b6e07a67ffa)
1/*
2 * Copyright (C) 2009-2012 by Matthias Ringwald
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

--- 310 unchanged lines hidden (view full) ---

319 hci_release_packet_buffer();
320 return BTSTACK_ACL_BUFFERS_FULL;
321 }
322
323 uint8_t * packet = hci_stack->hci_packet_buffer;
324 hci_con_handle_t con_handle = READ_ACL_CONNECTION_HANDLE(packet);
325 hci_connection_t *connection = hci_connection_for_handle( con_handle);
326 if (!connection) {
1/*
2 * Copyright (C) 2009-2012 by Matthias Ringwald
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

--- 310 unchanged lines hidden (view full) ---

319 hci_release_packet_buffer();
320 return BTSTACK_ACL_BUFFERS_FULL;
321 }
322
323 uint8_t * packet = hci_stack->hci_packet_buffer;
324 hci_con_handle_t con_handle = READ_ACL_CONNECTION_HANDLE(packet);
325 hci_connection_t *connection = hci_connection_for_handle( con_handle);
326 if (!connection) {
327 log_error("hci_send_acl_packet_buffer called but no connection for handle 0x%04x");
327 log_error("hci_send_acl_packet_buffer called but no connection for handle 0x%04x", con_handle);
328 hci_release_packet_buffer();
329 return 0;
330 }
331 hci_connection_timestamp(connection);
332
333 // count packet
334 connection->num_acl_packets_sent++;
335 // log_info("hci_send_acl_packet - handle %u, sent %u\n", connection->con_handle, connection->num_acl_packets_sent);

--- 2057 unchanged lines hidden ---
328 hci_release_packet_buffer();
329 return 0;
330 }
331 hci_connection_timestamp(connection);
332
333 // count packet
334 connection->num_acl_packets_sent++;
335 // log_info("hci_send_acl_packet - handle %u, sent %u\n", connection->con_handle, connection->num_acl_packets_sent);

--- 2057 unchanged lines hidden ---