summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kraglak <marcin.kraglak@tieto.com>2014-01-10 10:18:26 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2014-01-16 12:23:15 +0200
commit37a1b0fa3de57c903c6abd164bad5f8eb1dd25e3 (patch)
tree3547512c34ddba186c7a2d6a5b7cd838d9f67534
parent287c075913ab28f01681f96d6312de63bf2f3091 (diff)
emulator/bthost: Add implementation to PN RSP
This will send sabm command if PN_RSP will be received.
-rw-r--r--emulator/bthost.c3
1 files changed, 3 insertions, 0 deletions
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);
}
}