Diff between 287c075913ab28f01681f96d6312de63bf2f3091 and 37a1b0fa3de57c903c6abd164bad5f8eb1dd25e3

Changed Files

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

Full Patch

diff --git a/emulator/bthost.c b/emulator/bthost.c
index 59a6b8d..ec6f6aa 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);
 	}
 }