avdtp.c (2fca4dad957cd7b88f4657ed51e89c12615dda72) | avdtp.c (b93f89661ecd1d19be40311be96b92932960a800) |
---|---|
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 --- 1058 unchanged lines hidden (view full) --- 1067 while (btstack_linked_list_iterator_has_next(&it)){ 1068 avdtp_stream_endpoint_t * stream_endpoint = (avdtp_stream_endpoint_t *)btstack_linked_list_iterator_next(&it); 1069 if (stream_endpoint->connection != connection) continue; 1070 1071 switch (stream_endpoint->state){ 1072 case AVDTP_STREAM_ENDPOINT_OPENED: 1073 case AVDTP_STREAM_ENDPOINT_STREAMING: 1074 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_W4_L2CAP_FOR_MEDIA_DISCONNECTED; | 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 --- 1058 unchanged lines hidden (view full) --- 1067 while (btstack_linked_list_iterator_has_next(&it)){ 1068 avdtp_stream_endpoint_t * stream_endpoint = (avdtp_stream_endpoint_t *)btstack_linked_list_iterator_next(&it); 1069 if (stream_endpoint->connection != connection) continue; 1070 1071 switch (stream_endpoint->state){ 1072 case AVDTP_STREAM_ENDPOINT_OPENED: 1073 case AVDTP_STREAM_ENDPOINT_STREAMING: 1074 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_W4_L2CAP_FOR_MEDIA_DISCONNECTED; |
1075 l2cap_disconnect(stream_endpoint->l2cap_media_cid, 0); | 1075 l2cap_disconnect(stream_endpoint->l2cap_media_cid); |
1076 break; 1077 default: 1078 break; 1079 } 1080 } 1081 1082 connection->state = AVDTP_SIGNALING_CONNECTION_W4_L2CAP_DISCONNECTED; | 1076 break; 1077 default: 1078 break; 1079 } 1080 } 1081 1082 connection->state = AVDTP_SIGNALING_CONNECTION_W4_L2CAP_DISCONNECTED; |
1083 l2cap_disconnect(connection->l2cap_signaling_cid, 0); | 1083 l2cap_disconnect(connection->l2cap_signaling_cid); |
1084 return ERROR_CODE_SUCCESS; 1085} 1086 1087 1088#ifdef ENABLE_AVDTP_ACCEPTOR_EXPLICIT_START_STREAM_CONFIRMATION 1089static uint8_t avdtp_handle_explicit_start_stream_confirmation(uint16_t avdtp_cid, uint8_t local_seid, bool accept_stream_requested){ 1090 avdtp_connection_t * connection = avdtp_get_connection_for_avdtp_cid(avdtp_cid); 1091 if (!connection){ --- 521 unchanged lines hidden --- | 1084 return ERROR_CODE_SUCCESS; 1085} 1086 1087 1088#ifdef ENABLE_AVDTP_ACCEPTOR_EXPLICIT_START_STREAM_CONFIRMATION 1089static uint8_t avdtp_handle_explicit_start_stream_confirmation(uint16_t avdtp_cid, uint8_t local_seid, bool accept_stream_requested){ 1090 avdtp_connection_t * connection = avdtp_get_connection_for_avdtp_cid(avdtp_cid); 1091 if (!connection){ --- 521 unchanged lines hidden --- |