* [PATCH] monitor: Fix LE Read Transmit Power Command deconding
@ 2019-02-15 12:58 Szymon Janc
2019-02-19 14:17 ` Szymon Janc
0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2019-02-15 12:58 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
Min and max TX power are signed intergers.
---
monitor/bt.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/monitor/bt.h b/monitor/bt.h
index ec62864d6..1fbb40efc 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -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
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] monitor: Fix LE Read Transmit Power Command deconding
2019-02-15 12:58 [PATCH] monitor: Fix LE Read Transmit Power Command deconding Szymon Janc
@ 2019-02-19 14:17 ` Szymon Janc
0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2019-02-19 14:17 UTC (permalink / raw)
To: linux-bluetooth
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(-)
>
> diff --git a/monitor/bt.h b/monitor/bt.h
> index ec62864d6..1fbb40efc 100644
> --- a/monitor/bt.h
> +++ b/monitor/bt.h
> @@ -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.
--
pozdrawiam
Szymon Janc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-19 14:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-15 12:58 [PATCH] monitor: Fix LE Read Transmit Power Command deconding Szymon Janc
2019-02-19 14:17 ` Szymon Janc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).