Linux bluetooth development
 help / color / mirror / Atom feed
From: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [RFCv1 01/15] Bluetooth: Set Exended Flowspec flag for HS chan
Date: Tue,  4 Sep 2012 16:44:20 +0300	[thread overview]
Message-ID: <1346766274-21612-2-git-send-email-Andrei.Emeltchenko.news@gmail.com> (raw)
In-Reply-To: <1346766274-21612-1-git-send-email-Andrei.Emeltchenko.news@gmail.com>

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

For AMP we always assume EFS L2CAP option.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
 include/net/bluetooth/l2cap.h |    2 ++
 net/bluetooth/l2cap_core.c    |    7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 161be83..3ec8679 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -508,6 +508,8 @@ struct l2cap_chan {
 	__u32		remote_acc_lat;
 	__u32		remote_flush_to;
 
+	__u8		ctrl_id;
+
 	struct delayed_work	chan_timer;
 	struct delayed_work	retrans_timer;
 	struct delayed_work	monitor_timer;
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index de6f52c..aea2b50 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -5439,8 +5439,13 @@ void l2cap_connect_cfm(struct hci_conn *hcon, u8 status)
 void l2cap_chan_create_cfm(struct hci_conn *hcon, u8 remote_id)
 {
 	struct amp_mgr *mgr = hcon->amp_mgr;
+	struct l2cap_chan *chan = mgr->bredr_chan;
 
-	l2cap_send_chan_create_req(mgr->bredr_chan, remote_id);
+	/* Set Extended Flow Spec for AMP */
+	set_bit(FLAG_EFS_ENABLE, &chan->flags);
+	chan->ctrl_id = remote_id;
+
+	l2cap_send_chan_create_req(chan, remote_id);
 }
 
 int l2cap_disconn_ind(struct hci_conn *hcon)
-- 
1.7.9.5


  reply	other threads:[~2012-09-04 13:44 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-04 13:44 [RFCv1 00/15] AMP Logical Link setup Andrei Emeltchenko
2012-09-04 13:44 ` Andrei Emeltchenko [this message]
2012-09-10 23:49   ` [RFCv1 01/15] Bluetooth: Set Exended Flowspec flag for HS chan Mat Martineau
2012-09-11  8:15     ` Andrei Emeltchenko
2012-09-11 20:23       ` Mat Martineau
2012-09-04 13:44 ` [RFCv1 02/15] Bluetooth: Add logical link create function Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 03/15] Bluetooth: AMP: Process Logical Link Complete event Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 04/15] Bluetooth: AMP: Add handle to hci_chan structure Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 05/15] Bluetooth: AMP: Process Disc Logical Link Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 06/15] Bluetooth: AMP: Process Disc Physical Link Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 07/15] Bluetooth: L2CAP: Create Conf Response function Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 08/15] Bluetooth: AMP: Send EFS Conf Rsp when loglink cmpl Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 09/15] Bluetooth: AMP: Add hs_hchan and hs_hcon to l2cap_chan Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 10/15] Bluetooth: AMP: Handle AMP_LINK connection Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 11/15] Bluetooth: AMP: Send data over AMP channel Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 12/15] Bluetooth: Factor out hci_queue_acl Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 13/15] Bluetooth: AMP: Use Loglink handle in ACL Handle field Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 14/15] Bluetooth: Process create response and connect response identically Andrei Emeltchenko
2012-09-04 13:44 ` [RFCv1 15/15] Bluetooth: Factor out common L2CAP connection code Andrei Emeltchenko

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=1346766274-21612-2-git-send-email-Andrei.Emeltchenko.news@gmail.com \
    --to=andrei.emeltchenko.news@gmail.com \
    --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