From aa6c727822ac8bc0154fa5ce1f7aad2695054e90 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 11 Sep 2013 00:04:35 -0700 Subject: [PATCH] emulator: Add support for reading local out-of-band data --- emulator/btdev.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/emulator/btdev.c b/emulator/btdev.c index 2bbbae3e3..e54da87b1 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -1017,6 +1017,7 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode, struct bt_hci_rsp_read_afh_assessment_mode raam; struct bt_hci_rsp_read_ext_inquiry_response reir; struct bt_hci_rsp_read_simple_pairing_mode rspm; + struct bt_hci_rsp_read_local_oob_data rlod; struct bt_hci_rsp_read_inquiry_resp_tx_power rirtp; struct bt_hci_rsp_read_le_host_supported rlhs; struct bt_hci_rsp_read_sync_train_params rstp; @@ -1429,6 +1430,13 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode, cmd_complete(btdev, opcode, &status, sizeof(status)); break; + case BT_HCI_CMD_READ_LOCAL_OOB_DATA: + if (btdev->type == BTDEV_TYPE_LE) + goto unsupported; + rlod.status = BT_HCI_ERR_SUCCESS; + cmd_complete(btdev, opcode, &rlod, sizeof(rlod)); + break; + case BT_HCI_CMD_READ_INQUIRY_RESP_TX_POWER: if (btdev->type == BTDEV_TYPE_LE) goto unsupported; -- 2.47.3