avdtp.c (9cb061cb22e6631a9772a9e09b15c93c27d7651c) | avdtp.c (335dba6a8f1618f200debbc47e346d04b1c4b468) |
---|---|
1/* 2 * Copyright (C) 2016 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 --- 537 unchanged lines hidden (view full) --- 546 btstack_memory_avdtp_stream_endpoint_free(stream_endpoint); 547} 548 549static void 550handle_l2cap_data_packet_for_signaling_connection(avdtp_connection_t *connection, uint8_t *packet, uint16_t size) { 551 if (size < 2) return; 552 553 uint16_t offset; | 1/* 2 * Copyright (C) 2016 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 --- 537 unchanged lines hidden (view full) --- 546 btstack_memory_avdtp_stream_endpoint_free(stream_endpoint); 547} 548 549static void 550handle_l2cap_data_packet_for_signaling_connection(avdtp_connection_t *connection, uint8_t *packet, uint16_t size) { 551 if (size < 2) return; 552 553 uint16_t offset; |
554 avdtp_message_type_t message_type = avdtp_get_signaling_packet_type(packet); | 554 avdtp_message_type_t message_type = avdtp_get_signaling_message_type(packet); |
555 switch (message_type){ 556 case AVDTP_CMD_MSG: 557 offset = avdtp_read_signaling_header(&connection->acceptor_signaling_packet, packet, size); 558 avdtp_acceptor_stream_config_subsm(connection, packet, size, offset); 559 break; 560 default: 561 offset = avdtp_read_signaling_header(&connection->initiator_signaling_packet, packet, size); 562 avdtp_initiator_stream_config_subsm(connection, packet, size, offset); --- 1098 unchanged lines hidden --- | 555 switch (message_type){ 556 case AVDTP_CMD_MSG: 557 offset = avdtp_read_signaling_header(&connection->acceptor_signaling_packet, packet, size); 558 avdtp_acceptor_stream_config_subsm(connection, packet, size, offset); 559 break; 560 default: 561 offset = avdtp_read_signaling_header(&connection->initiator_signaling_packet, packet, size); 562 avdtp_initiator_stream_config_subsm(connection, packet, size, offset); --- 1098 unchanged lines hidden --- |