Re: [RFCv0 12/21] Bluetooth: Add state to hci_chan
From: Andrei Emeltchenko <hidden>
Date: 2012-07-26 19:54:12
Hi Mat, On Wed, Jul 25, 2012 at 04:51:04PM -0700, Mat Martineau wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Mat Martineau <redacted> --- include/net/bluetooth/hci_core.h | 7 ++++--- net/bluetooth/hci_conn.c | 1 + 2 files changed, 5 insertions(+), 3 deletions(-)diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 41d9439..4de510a 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h@@ -336,11 +336,12 @@ struct hci_conn { }; struct hci_chan { - struct list_head list; + struct list_head list; - struct hci_conn *conn; - struct sk_buff_head data_q; + struct hci_conn *conn; + struct sk_buff_head data_q;
the real patch start here?
quoted hunk ↗ jump to hunk
unsigned int sent; + __u8 state; }; extern struct list_head hci_dev_list;diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 5ad7da2..1b796e5 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c@@ -903,6 +903,7 @@ struct hci_chan *hci_chan_create(struct hci_conn *conn) chan->conn = conn; skb_queue_head_init(&chan->data_q); + chan->state = BT_CONNECTED; list_add_rcu(&chan->list, &conn->chan_list);