summaryrefslogtreecommitdiff
path: root/lib/hci.h
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2012-12-05 21:22:50 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-12-06 12:24:04 +0200
commit8f0d6c96c4409979646e81b60cfdba517ed1e48b (patch)
tree45a00773d2f63886562a36154ece1dd0847ef1d6 /lib/hci.h
parent375e766245eb2bdb44c61fc77efba2225cb8a10b (diff)
downloadbluez-8f0d6c96c4409979646e81b60cfdba517ed1e48b.tar.gz
lib: Fix member type on le_read_advertising_channel_tx_power_rp
Transmit power level range is -20 <= N <= 10, thus it should be stored as int8_t.
Diffstat (limited to 'lib/hci.h')
-rw-r--r--lib/hci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hci.h b/lib/hci.h
index 2f18ec815..196b1aa56 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -1492,7 +1492,7 @@ typedef struct {
#define OCF_LE_READ_ADVERTISING_CHANNEL_TX_POWER 0x0007
typedef struct {
uint8_t status;
- uint8_t level;
+ int8_t level;
} __attribute__ ((packed)) le_read_advertising_channel_tx_power_rp;
#define LE_READ_ADVERTISING_CHANNEL_TX_POWER_RP_SIZE 2