It will handle mcc frames in bthost. --- emulator/bthost.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/emulator/bthost.c b/emulator/bthost.c index 242ce19..591aae9 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -1387,10 +1387,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, -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html