avdtp_acceptor.c (485c0a4c6802e1ae610e2fbeed45dd85c4399e03) | avdtp_acceptor.c (2bb3471f99e3b46b9fc9cc77b48863838e15ce57) |
---|---|
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 --- 293 unchanged lines hidden (view full) --- 302 } 303 log_info("ACP: AVDTP_STREAM_ENDPOINT_W2_ANSWER_OPEN_STREAM"); 304 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_ANSWER_OPEN_STREAM; 305 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_W4_L2CAP_FOR_MEDIA_CONNECTED; 306 connection->local_seid = stream_endpoint->sep.seid; 307 break; 308 case AVDTP_SI_START: 309 if (stream_endpoint->state != AVDTP_STREAM_ENDPOINT_OPENED){ | 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 --- 293 unchanged lines hidden (view full) --- 302 } 303 log_info("ACP: AVDTP_STREAM_ENDPOINT_W2_ANSWER_OPEN_STREAM"); 304 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_ANSWER_OPEN_STREAM; 305 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_W4_L2CAP_FOR_MEDIA_CONNECTED; 306 connection->local_seid = stream_endpoint->sep.seid; 307 break; 308 case AVDTP_SI_START: 309 if (stream_endpoint->state != AVDTP_STREAM_ENDPOINT_OPENED){ |
310 log_info("ACP: REJECT AVDTP_SI_START, BAD_STATE"); | 310 log_info("ACP: REJECT AVDTP_SI_START, BAD_STATE, state %d", stream_endpoint->state); |
311 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_REJECT_CATEGORY_WITH_ERROR_CODE; 312 connection->error_code = BAD_STATE; 313 connection->reject_signal_identifier = connection->signaling_packet.signal_identifier; 314 break; 315 } 316 log_info("ACP: AVDTP_ACCEPTOR_W2_ANSWER_START_STREAM"); 317 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_ANSWER_START_STREAM; 318 break; --- 273 unchanged lines hidden --- | 311 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_REJECT_CATEGORY_WITH_ERROR_CODE; 312 connection->error_code = BAD_STATE; 313 connection->reject_signal_identifier = connection->signaling_packet.signal_identifier; 314 break; 315 } 316 log_info("ACP: AVDTP_ACCEPTOR_W2_ANSWER_START_STREAM"); 317 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_ANSWER_START_STREAM; 318 break; --- 273 unchanged lines hidden --- |