Linux bluetooth development
 help / color / mirror / Atom feed
From: Bruna Moreira <bruna.moreira@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Cc: Jefferson Delfes <jefferson.delfes@openbossa.org>
Subject: [RFC BlueZ 01/33] lib: Add set controller data operation
Date: Mon, 27 Aug 2012 13:02:53 -0400	[thread overview]
Message-ID: <1346087005-24693-2-git-send-email-bruna.moreira@openbossa.org> (raw)
In-Reply-To: <1346087005-24693-1-git-send-email-bruna.moreira@openbossa.org>

From: Jefferson Delfes <jefferson.delfes@openbossa.org>

Add structure for new command: Set Controller Data. Add new defines for
flags that will be used in Set Controller Data operation.
---
 lib/mgmt.h |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/lib/mgmt.h b/lib/mgmt.h
index a2648bc..99243b1 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -318,6 +318,17 @@ struct mgmt_cp_set_device_id {
 	uint16_t version;
 } __packed;
 
+#define MGMT_DATA_NORMAL_PRIORITY	0x00
+#define MGMT_DATA_HIGH_PRIORITY		0x01
+
+#define MGMT_OP_SET_CONTROLLER_DATA	0x0029
+struct mgmt_cp_set_controller_data {
+	uint8_t flags;
+	uint8_t data_type;
+	uint8_t data_length;
+	uint8_t data[0];
+} __packed;
+
 #define MGMT_EV_CMD_COMPLETE		0x0001
 struct mgmt_ev_cmd_complete {
 	uint16_t opcode;
@@ -489,6 +500,7 @@ static const char *mgmt_op[] = {
 	"Block Device",
 	"Unblock Device",
 	"Set Device ID",
+	"Set Controller Data",
 };
 
 static const char *mgmt_ev[] = {
-- 
1.7.9.5


  reply	other threads:[~2012-08-27 17:02 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-27 17:02 [RFC BlueZ 00/33] Broadcaster/Observer implementation Bruna Moreira
2012-08-27 17:02 ` Bruna Moreira [this message]
2012-08-27 17:02 ` [RFC BlueZ 02/33] lib: Add unset controller data operation Bruna Moreira
2012-08-27 17:02 ` [RFC BlueZ 03/33] lib: Add set broadcaster operation Bruna Moreira
2012-08-27 17:02 ` [RFC BlueZ 04/33] lib: Add set observer operation Bruna Moreira
2012-08-27 17:02 ` [RFC BlueZ 05/33] btmgmt: Add set broadcaster support Bruna Moreira
2012-08-27 17:02 ` [RFC BlueZ 06/33] btmgmt: Add set observer command Bruna Moreira
2012-08-27 17:02 ` [RFC BlueZ 07/33] btmgmt: Add set controller data support Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 08/33] btmgmt: Add unset " Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 09/33] mgmt-api: Broadcaster/Observer management API Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 10/33] mgmt: Add set observer command Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 11/33] mgmt: Add set broadcaster command Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 12/33] mgmt: Add set controller data command Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 13/33] mgmt: Add unset " Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 14/33] doc: Add Observer D-Bus API documentation Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 15/33] adapter: Add D-Bus API for Observer GAP Role Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 16/33] observer: Add RegisterServiceObserver() D-Bus method Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 17/33] observer: Add UnregisterServiceObserver() " Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 18/33] observer: Add RegisterManufacturerObserver() " Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 19/33] observer: Add UnregisterManufacturerObserver() " Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 20/33] observer: Add watchers and filters for observers Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 21/33] eir: Add manufacturer and service data fields Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 22/33] observer: Add ServiceReceived() and ManufacturerReceived() D-Bus method Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 23/33] observer: Add python test script Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 24/33] doc: Add Broadcaster D-Bus API documentation Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 25/33] adapter: Add D-Bus API for Broadcaster GAP Role Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 26/33] lib: Maximum value to advertising and scan response Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 27/33] broadcaster: Add SetServiceData() D-Bus method Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 28/33] broadcaster: Add SetManufacturerData() " Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 29/33] broadcaster: Add list of broadcasters session Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 30/33] broadcaster: Build and send ADV/EIR data blob to kernel Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 31/33] broadcaster: Add ClearBroadcastData() D-Bus method Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 32/33] broadcaster: Update some data of already broadcast value Bruna Moreira
2012-08-27 17:03 ` [RFC BlueZ 33/33] broadcaster: Add python test script Bruna Moreira

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=1346087005-24693-2-git-send-email-bruna.moreira@openbossa.org \
    --to=bruna.moreira@openbossa.org \
    --cc=jefferson.delfes@openbossa.org \
    --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