Diff between 662c19903fb61e0dc05467648eae410f5b35552c and 3fbe3147146aa857db81cb7a02d63ced40aea67b

Changed Files

File Additions Deletions Status
emulator/bthost.c +4 -0 modified

Full Patch

diff --git a/emulator/bthost.c b/emulator/bthost.c
index 8e0b888..0126030 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -1513,6 +1513,10 @@ static void rfcomm_disc_recv(struct bthost *bthost, struct btconn *conn,
 				struct l2conn *l2conn, const void *data,
 				uint16_t len)
 {
+	const struct rfcomm_cmd *hdr = data;
+	uint8_t dlci = RFCOMM_GET_DLCI(hdr->address);
+
+	rfcomm_ua_send(bthost, conn, l2conn, 0, dlci);
 }
 
 static void rfcomm_ua_recv(struct bthost *bthost, struct btconn *conn,