avdtp: reset configuration state on media channel closed

This commit is contained in:
Milanka Ringwald 2020-10-01 16:13:09 +02:00
parent b3b67de40a
commit 7f162947d9

View File

@ -942,6 +942,7 @@ void avdtp_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet
avdtp_local_seid(stream_endpoint)); avdtp_local_seid(stream_endpoint));
} }
avdtp_reset_stream_endpoint(stream_endpoint); avdtp_reset_stream_endpoint(stream_endpoint);
connection->configuration_state = AVDTP_CONFIGURATION_STATE_IDLE;
break; break;
} }
if (stream_endpoint->l2cap_recovery_cid == local_cid){ if (stream_endpoint->l2cap_recovery_cid == local_cid){
@ -972,9 +973,6 @@ void avdtp_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet
} }
break; break;
case HCI_EVENT_DISCONNECTION_COMPLETE:
break;
case L2CAP_EVENT_CAN_SEND_NOW: case L2CAP_EVENT_CAN_SEND_NOW:
log_debug("avdtp_packet_handler, L2CAP_EVENT_CAN_SEND_NOW l2cap_cid 0x%02x", channel); log_debug("avdtp_packet_handler, L2CAP_EVENT_CAN_SEND_NOW l2cap_cid 0x%02x", channel);
connection = avdtp_get_connection_for_l2cap_signaling_cid(channel); connection = avdtp_get_connection_for_l2cap_signaling_cid(channel);