diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-02-21 15:26:44 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-02-21 15:26:44 +0100 |
commit | 65c785cf0614102b347b8d53eced498af4cdc0ed (patch) | |
tree | bbeea2c3b9784bbfe931cb0ae4f546b9b890695f /test | |
parent | 1202dd2c9e62377861c4bec14db0ce8530be8b44 (diff) |
hciemu: Add support for LE buffer size command
Diffstat (limited to 'test')
-rw-r--r-- | test/hciemu.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; |