From 37a1b0fa3de57c903c6abd164bad5f8eb1dd25e3 Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Fri, 10 Jan 2014 10:18:26 +0100 Subject: emulator/bthost: Add implementation to PN RSP This will send sabm command if PN_RSP will be received. --- emulator/bthost.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emulator/bthost.c b/emulator/bthost.c index 59a6b8d67..ec6f6aa52 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -1650,6 +1650,9 @@ static void rfcomm_pn_recv(struct bthost *bthost, struct btconn *conn, rfcomm_fcs(buf); send_acl(bthost, conn->handle, l2conn->dcid, buf, sizeof(buf)); + } else if (bthost->rfcomm_conn_data) { + rfcomm_sabm_send(bthost, conn, l2conn, + 1, bthost->rfcomm_conn_data->channel * 2); } } -- cgit v1.2.3