Skip to contentSkip to conversation

monitor: Fix LE Read Transmit Power Command deconding

PATCH Applied Szymon Janc 1 participant 2 messages Feb 15, 2019 – Feb 19, 2019 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 monitor: Fix LE Read Transmit Power Command deconding

Min and max TX power are signed intergers.

---
 monitor/bt.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
monitor/bt.h +2 -2
index ec62864d6..1fbb40efc 100644
@@ -2359,8 +2359,8 @@ struct bt_hci_rsp_le_read_dev_periodic_adv_list_size {
 #define BT_HCI_CMD_LE_READ_TX_POWER		0x204b
 struct bt_hci_rsp_le_read_tx_power {
 	uint8_t  status;
-	uint8_t  min_tx_power;
-	uint8_t  max_tx_power;
+	int8_t  min_tx_power;
+	int8_t  max_tx_power;
 } __attribute__ ((packed));
 
 #define BT_HCI_CMD_LE_READ_RF_PATH_COMPENSATION		0x204c
Signature · 1 line
2.20.1
author Applied
#1 lore raw
Quoted 10 lines · On Friday, 15 February 2019 13:58:28 CET Szymon Janc wrote:

Min and max TX power are signed intergers.

---
 monitor/bt.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
monitor/bt.h +0 -0
index ec62864d6..1fbb40efc 100644

monitor/bt.h struct bt_hci_rsp_le_read_dev_periodic_adv_list_size { · line 2366

Quoted 10 lines
monitor/bt.h +2 -2
@@ -2359,8 +2359,8 @@ struct bt_hci_rsp_le_read_dev_periodic_adv_list_size {
 #define BT_HCI_CMD_LE_READ_TX_POWER		0x204b
 struct bt_hci_rsp_le_read_tx_power {
 	uint8_t  status;
-	uint8_t  min_tx_power;
-	uint8_t  max_tx_power;
+	int8_t  min_tx_power;
+	int8_t  max_tx_power;
 } __attribute__ ((packed));
 
 #define BT_HCI_CMD_LE_READ_RF_PATH_COMPENSATION		0x204c

Applied.

Signature · 2 lines
pozdrawiam
Szymon Janc