diff options
author | Marcin Kraglak <marcin.kraglak@tieto.com> | 2014-01-10 10:18:18 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-01-16 12:23:15 +0200 |
commit | cbc1720d4f13b6d8a25749cdcb4154d4ef08f38b (patch) | |
tree | 0db1f279802242ae2a0368199871e861907afcc7 | |
parent | 27ae6d5747416dc03c14e2edf8dce0c92087b70c (diff) |
emulator/bthost: Add rfcomm_mcc_recv stub
It will handle mcc frames in bthost.
-rw-r--r-- | emulator/bthost.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/emulator/bthost.c b/emulator/bthost.c index 83a1f4fdf..5aab60a7f 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -1521,10 +1521,29 @@ static void rfcomm_dm_recv(struct bthost *bthost, struct btconn *conn, { } +static void rfcomm_mcc_recv(struct bthost *bthost, struct btconn *conn, + struct l2conn *l2conn, const void *data, uint16_t len) +{ +} + static void rfcomm_uih_recv(struct bthost *bthost, struct btconn *conn, struct l2conn *l2conn, const void *data, uint16_t len) { + const struct rfcomm_cmd *hdr = data; + const void *p; + uint8_t ea; + + ea = RFCOMM_TEST_EA(hdr->length) ? true : false; + + if (!RFCOMM_GET_DLCI(hdr->address)) { + if (ea) + p = data + sizeof(struct rfcomm_hdr); + else + p = data + sizeof(struct rfcomm_hdr) + sizeof(uint8_t); + + rfcomm_mcc_recv(bthost, conn, l2conn, p, p - data); + } } static void process_rfcomm(struct bthost *bthost, struct btconn *conn, |