avdtp: lookup stream endpoint by acceptor_local_seid for incoming l2cap media connections

This commit is contained in:
Matthias Ringwald 2019-12-17 21:11:53 +01:00
parent 17741193d9
commit 939e12ade6

View File

@ -581,10 +581,10 @@ void avdtp_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet
break; break;
} }
// now, we're only dealing with media connections // now, we're only dealing with media connections that are created by remote side - we're acceptor here
stream_endpoint = avdtp_stream_endpoint_for_signaling_cid(local_cid, context); stream_endpoint = avdtp_stream_endpoint_with_seid(connection->acceptor_local_seid, context);
if (!stream_endpoint) { if (!stream_endpoint) {
log_info("L2CAP_EVENT_INCOMING_CONNECTION no streamendpoint found for local cid %x", local_cid); log_info("L2CAP_EVENT_INCOMING_CONNECTION no streamendpoint found for local seid %x", connection->acceptor_local_seid);
l2cap_decline_connection(local_cid); l2cap_decline_connection(local_cid);
break; break;
} }