From 0f7ca647de8dc71ac1881aba4f2dbc66327e0e78 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Tue, 22 Jan 2019 12:45:39 -0800 Subject: [PATCH] nimble/host: Fix field type for TX Power in HCI event struct TX Power is a signed value (same as RSSI). --- nimble/include/nimble/hci_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/include/nimble/hci_common.h b/nimble/include/nimble/hci_common.h index 437ed84cf..420c9fc12 100644 --- a/nimble/include/nimble/hci_common.h +++ b/nimble/include/nimble/hci_common.h @@ -941,7 +941,7 @@ struct hci_ext_adv_report_param { uint8_t prim_phy; uint8_t sec_phy; uint8_t sid; - uint8_t tx_power; + int8_t tx_power; int8_t rssi; uint16_t per_adv_itvl; uint8_t dir_addr_type;