Diff between 1202dd2c9e62377861c4bec14db0ce8530be8b44 and 65c785cf0614102b347b8d53eced498af4cdc0ed

Changed Files

File Additions Deletions Status
test/hciemu.c +9 -0 modified

Full Patch

diff --git a/test/hciemu.c b/test/hciemu.c
index 3697814..75475b6 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;