From b4c969508293980a60ef0b5378098d3cb8b366d0 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 9 Aug 2024 15:41:52 +0200 Subject: [PATCH] hid_host: abort outgoing connection if sdp query does not complete --- src/classic/hid_host.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/classic/hid_host.c b/src/classic/hid_host.c index cc833701d..63e00f1af 100644 --- a/src/classic/hid_host.c +++ b/src/classic/hid_host.c @@ -674,6 +674,11 @@ static void hid_host_handle_sdp_client_query_result(uint8_t packet_type, uint16_ // report mode possible break; + // SDP query incomplete (e.g. disconnect) + case SDP_QUERY_INCOMPLETE: + finalize_connection = true; + break; + // SDP connection failed or remote does not have SDP server default: if (connection->requested_protocol_mode == HID_PROTOCOL_MODE_REPORT_WITH_FALLBACK_TO_BOOT){