linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] lib: Add definitions for Get Connection Information command
@ 2014-05-16 15:19 Andrzej Kaczmarek
  2014-05-16 15:19 ` [PATCH 2/4] tools: Add conn-info to btmgmt Andrzej Kaczmarek
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrzej Kaczmarek @ 2014-05-16 15:19 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Andrzej Kaczmarek

---
 lib/mgmt.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/lib/mgmt.h b/lib/mgmt.h
index ab45735..bab0f99 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -365,6 +365,17 @@ struct mgmt_cp_load_irks {
 	struct mgmt_irk_info irks[0];
 } __packed;
 
+#define MGMT_OP_GET_CONN_INFO		0x0031
+struct mgmt_cp_get_conn_info {
+	struct mgmt_addr_info addr;
+} __packed;
+struct mgmt_rp_get_conn_info {
+	struct mgmt_addr_info addr;
+	int8_t rssi;
+	int8_t tx_power;
+	int8_t max_tx_power;
+} __packed;
+
 #define MGMT_EV_CMD_COMPLETE		0x0001
 struct mgmt_ev_cmd_complete {
 	uint16_t opcode;
@@ -570,6 +581,7 @@ static const char *mgmt_op[] = {
 	"Set Debug Keys",
 	"Set Privacy",
 	"Load Identity Resolving Keys",
+	"Get Connection Information",
 };
 
 static const char *mgmt_ev[] = {
-- 
1.9.3


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

end of thread, other threads:[~2014-05-16 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-16 15:19 [PATCH 1/4] lib: Add definitions for Get Connection Information command Andrzej Kaczmarek
2014-05-16 15:19 ` [PATCH 2/4] tools: Add conn-info to btmgmt Andrzej Kaczmarek
2014-05-16 15:19 ` [PATCH 3/4] android/gatt: Add support to read connection RSSI Andrzej Kaczmarek
2014-05-16 17:42   ` Szymon Janc
2014-05-16 15:19 ` [PATCH 4/4] android/gatt: Add proper read_remote_rssi implementation Andrzej Kaczmarek

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).