avdtp_acceptor: reject suspend in state endpoint open

This commit is contained in:
Matthias Ringwald 2023-12-12 15:22:22 +01:00
parent 096e646974
commit 84ad4212a9
2 changed files with 1 additions and 1 deletions

View File

@ -52,6 +52,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- HID Host: support large HID Descriptors
- AVDTP: limit L2CAP MTU to largest BR/EDR packet, fixes A2DP Sink role for some Samsung TV
- AVDTP: fix Get Stream Configuration
- AVDTP: reject suspend in state endpoint open
- AVRCP: reject incoming second l2cap connection
- AVRCP: generate command for avrcp_controller_get_element_attributes dynamically
- SPP Server: fix SPP version in SDP record

View File

@ -432,7 +432,6 @@ void avdtp_acceptor_stream_config_subsm(avdtp_connection_t *connection, uint8_t
break;
case AVDTP_SI_SUSPEND:
switch (stream_endpoint->state){
case AVDTP_STREAM_ENDPOINT_OPENED:
case AVDTP_STREAM_ENDPOINT_STREAMING:
stream_endpoint->state = AVDTP_STREAM_ENDPOINT_OPENED;
connection->num_suspended_seids--;