Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] lib: Fix member type on le_read_advertising_channel_tx_power_rp
@ 2012-12-06  1:22 Anderson Lizardo
  2012-12-06 10:24 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Anderson Lizardo @ 2012-12-06  1:22 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

Transmit power level range is -20 <= N <= 10, thus it should be stored
as int8_t.
---
 lib/hci.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/hci.h b/lib/hci.h
index 2f18ec8..196b1aa 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
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-06 10:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06  1:22 [PATCH BlueZ] lib: Fix member type on le_read_advertising_channel_tx_power_rp Anderson Lizardo
2012-12-06 10:24 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox