Diff between 9a9680909d46c78ebe360f22af8e5561fb58a302 and aa6c727822ac8bc0154fa5ce1f7aad2695054e90

Changed Files

File Additions Deletions Status
emulator/btdev.c +8 -0 modified

Full Patch

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 2bbbae3..e54da87 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;