summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kraglak <marcin.kraglak@tieto.com>2014-01-10 10:18:21 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2014-01-16 12:23:15 +0200
commit3fbe3147146aa857db81cb7a02d63ced40aea67b (patch)
tree05ec3d6020ce50d193301eec70b8899eaa0146ec
parent662c19903fb61e0dc05467648eae410f5b35552c (diff)
emulator/bthost: Implement recv_disc rfcomm frame in bthost
-rw-r--r--emulator/bthost.c4
1 files changed, 4 insertions, 0 deletions
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,