Linux bluetooth development
 help / color / mirror / Atom feed
From: Dohyun Pyun <re20sfree@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: steve.jun@samsung.com, DoHyun Pyun <dh79.pyun@samsung.com>,
	C S Bhargava <cs.bhargava@samsung.com>
Subject: [PATCH v3 3/8] Bluetooth: Add Set Connectionless Slave Broadcast Data Command
Date: Wed,  2 Oct 2013 21:09:13 +0900	[thread overview]
Message-ID: <1380715758-10334-4-git-send-email-dh79.pyun@samsung.com> (raw)
In-Reply-To: <1380715758-10334-1-git-send-email-dh79.pyun@samsung.com>

From: DoHyun Pyun <dh79.pyun@samsung.com>

The Set_Connectionless_Slave_Broadcast_Data command provides the
ability for the Host to set Connectionless Slave Broadcast data in
the BR/EDR Controller.

The Core Spec Addendum 4 adds this command in part B Connectionless
Slave Broadcast.

Bluetooth Core Specification Addendum 4 - Page 93

"7.3.88 Set Connectionless Slave Broadcast Data Command [New Section]
...
If connectionless slave broadcast mode is disabled, this data shall be
kept by the BR/EDR Controller and used once connectionless slave broadcast
mode is enabled. If connectionless slave broadcast mode is enabled,
and this command is successful, this data will be sent starting with
the next Connectionless Slave Broadcast instant.

The Data_Length field may be zero, in which case no data needs to be
provided.

The Host may fragment the data using the Fragment field in the command. If
the combined length of the fragments exceeds the capacity of the largest
allowed packet size specified in the Set Connectionless Slave Broadcast
command, all fragments associated with the data being assembled shall be
discarded and the Invalid HCI Command Parameters error (0x12) shall be
returned."

Signed-off-by: Dohyun Pyun <dh79.pyun@samsung.com>
Signed-off-by: C S Bhargava <cs.bhargava@samsung.com>
---
 include/net/bluetooth/hci.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 9b071f1..d9e0a84 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -35,6 +35,8 @@
 
 #define HCI_MAX_AMP_ASSOC_SIZE	672
 
+#define HCI_MAX_CSB_DATA_SIZE	252
+
 /* HCI dev events */
 #define HCI_DEV_REG			1
 #define HCI_DEV_UNREG			2
@@ -857,6 +859,18 @@ struct hci_rp_delete_reserved_lt_addr {
 	__u8	lt_addr;
 } __packed;
 
+#define HCI_OP_SET_CSB_DATA		0x0c76
+struct hci_cp_set_csb_data {
+	__u8	lt_addr;
+	__u8	fragment;
+	__u8	data_length;
+	__u8	data[HCI_MAX_CSB_DATA_SIZE];
+} __packed;
+struct hci_rp_set_csb_data {
+	__u8	status;
+	__u8	lt_addr;
+} __packed;
+
 #define HCI_OP_READ_SYNC_TRAIN_PARAMS	0x0c77
 
 #define HCI_OP_READ_LOCAL_VERSION	0x1001
-- 
1.8.1.2


  parent reply	other threads:[~2013-10-02 12:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-02 12:09 [PATCH v3 0/8] Add CSA 4 commands and events in hci.h Dohyun Pyun
2013-10-02 12:09 ` [PATCH v3 1/8] Bluetooth: Add Set Reserved LT_ADDR Command Dohyun Pyun
2013-10-02 12:09 ` [PATCH v3 2/8] Bluetooth: Add Delete " Dohyun Pyun
2013-10-02 12:09 ` Dohyun Pyun [this message]
2013-10-02 12:09 ` [PATCH v3 4/8] Bluetooth: Add Write Synchronization Train Parameters Command Dohyun Pyun
2013-10-02 12:09 ` [PATCH v3 5/8] Bluetooth: Add Set Connectionless Slave Broadcast Command Dohyun Pyun
2013-10-02 12:09 ` [PATCH v3 6/8] Bluetooth: Add Start Synchronization Train Command Dohyun Pyun
2013-10-02 12:09 ` [PATCH v3 7/8] Bluetooth: Add Synchronization Train Complete Event Dohyun Pyun
2013-10-02 12:09 ` [PATCH v3 8/8] Bluetooth: Add Slave Page Response Timeout Event Dohyun Pyun
2013-10-02 12:20   ` Anderson Lizardo

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=1380715758-10334-4-git-send-email-dh79.pyun@samsung.com \
    --to=re20sfree@gmail.com \
    --cc=cs.bhargava@samsung.com \
    --cc=dh79.pyun@samsung.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=steve.jun@samsung.com \
    /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