From 3fbe3147146aa857db81cb7a02d63ced40aea67b Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Fri, 10 Jan 2014 10:18:21 +0100 Subject: [PATCH] emulator/bthost: Implement recv_disc rfcomm frame in bthost --- emulator/bthost.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emulator/bthost.c b/emulator/bthost.c index 8e0b8884f..01260300c 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, -- 2.47.3