aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-04-04 15:16:44 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-13 11:19:59 -0400
commit58d35f87effa0235181a24d55576aaa756ef7312 (patch)
treeedf81e418892f213dd93471d1917b6e3603f3c42 /include/net/bluetooth
parentc916fbe45c1f30417fa28e62cbbfae295a3f315c (diff)
Bluetooth: Move tx queue to struct l2cap_chan
tx_q is the queue used by ERTM mode. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/l2cap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index ec56d8861a4e..7a215a7f9e39 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -314,6 +314,8 @@ struct l2cap_chan {
314 struct timer_list retrans_timer; 314 struct timer_list retrans_timer;
315 struct timer_list monitor_timer; 315 struct timer_list monitor_timer;
316 struct timer_list ack_timer; 316 struct timer_list ack_timer;
317 struct sk_buff *tx_send_head;
318 struct sk_buff_head tx_q;
317 struct sk_buff_head srej_q; 319 struct sk_buff_head srej_q;
318 struct sk_buff_head busy_q; 320 struct sk_buff_head busy_q;
319 struct work_struct busy_work; 321 struct work_struct busy_work;
@@ -355,7 +357,6 @@ struct l2cap_conn {
355 357
356/* ----- L2CAP socket info ----- */ 358/* ----- L2CAP socket info ----- */
357#define l2cap_pi(sk) ((struct l2cap_pinfo *) sk) 359#define l2cap_pi(sk) ((struct l2cap_pinfo *) sk)
358#define TX_QUEUE(sk) (&l2cap_pi(sk)->tx_queue)
359 360
360struct l2cap_pinfo { 361struct l2cap_pinfo {
361 struct bt_sock bt; 362 struct bt_sock bt;
@@ -384,7 +385,6 @@ struct l2cap_pinfo {
384 385
385 __le16 sport; 386 __le16 sport;
386 387
387 struct sk_buff_head tx_queue;
388 struct l2cap_conn *conn; 388 struct l2cap_conn *conn;
389 struct l2cap_chan *chan; 389 struct l2cap_chan *chan;
390}; 390};