From 65c785cf0614102b347b8d53eced498af4cdc0ed Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 21 Feb 2012 15:26:44 +0100 Subject: [PATCH] hciemu: Add support for LE buffer size command --- test/hciemu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/hciemu.c b/test/hciemu.c index 3697814f1..75475b65a 100644 --- a/test/hciemu.c +++ b/test/hciemu.c @@ -839,9 +839,18 @@ static void hci_status_param(uint16_t ocf, int plen, uint8_t *data) static void hci_le_control(uint16_t ocf, int plen, uint8_t *data) { + le_read_buffer_size_rp bs; + const uint16_t ogf = OGF_LE_CTL; switch (ocf) { + case OCF_LE_READ_BUFFER_SIZE: + bs.status = 0; + bs.pkt_len = htobs(VHCI_ACL_MTU); + bs.max_pkt = htobs(VHCI_ACL_MAX_PKT); + command_complete(ogf, ocf, sizeof(bs), &bs); + break; + default: command_status(ogf, ocf, 0x01); break; -- 2.47.3