Diff between 0a13fb5602fb36a5936fedda3bbc210613895ce3 and d4618b52d403b98214a7a486815f896969340f0a

Changed Files

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

Full Patch

diff --git a/emulator/btdev.c b/emulator/btdev.c
index b1cc77f..2cb7cf1 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -658,6 +658,7 @@ static void process_cmd(struct btdev *btdev, const void *data, uint16_t len)
 	struct bt_hci_rsp_read_local_amp_info rlai;
 	struct bt_hci_rsp_le_read_buffer_size lrbs;
 	struct bt_hci_rsp_le_read_local_features lrlf;
+	struct bt_hci_rsp_le_read_adv_tx_power lratp;
 	struct bt_hci_rsp_le_read_supported_states lrss;
 	uint16_t opcode;
 	uint8_t status, page;
@@ -1075,6 +1076,12 @@ static void process_cmd(struct btdev *btdev, const void *data, uint16_t len)
 		cmd_complete(btdev, opcode, &lrlf, sizeof(lrlf));
 		break;
 
+	case BT_HCI_CMD_LE_READ_ADV_TX_POWER:
+		lratp.status = BT_HCI_ERR_SUCCESS;
+		lratp.level = 0;
+		cmd_complete(btdev, opcode, &lratp, sizeof(lratp));
+		break;
+
 	case BT_HCI_CMD_LE_SET_SCAN_PARAMETERS:
 		status = BT_HCI_ERR_SUCCESS;
 		cmd_complete(btdev, opcode, &status, sizeof(status));