From: Szymon Janc <szymon.janc@codecoup.pl>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@codecoup.pl>
Subject: [PATCH] monitor: Fix LE Read Transmit Power Command deconding
Date: Fri, 15 Feb 2019 13:58:28 +0100 [thread overview]
Message-ID: <20190215125828.20410-1-szymon.janc@codecoup.pl> (raw)
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
next reply other threads:[~2019-02-15 12:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-15 12:58 Szymon Janc [this message]
2019-02-19 14:17 ` [PATCH] monitor: Fix LE Read Transmit Power Command deconding Szymon Janc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190215125828.20410-1-szymon.janc@codecoup.pl \
--to=szymon.janc@codecoup.pl \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox