diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-04 14:40:12 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-04-13 11:19:47 -0400 |
commit | 39d5a3ee355fa903ef4609402c79f570eb9fc4d2 (patch) | |
tree | 1039d4b2431e377efa03033f7dfa19d670d94952 /include | |
parent | 2ead70b8390d199ca04cd35311b51f5f3676079e (diff) |
Bluetooth: Move SREJ list to struct l2cap_chan
As part of moving all the Channel related operation to struct l2cap_chan.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index d05d91f2fd32..ec56d8861a4e 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -277,6 +277,11 @@ struct l2cap_conn_param_update_rsp { | |||
277 | #define L2CAP_CONN_PARAM_REJECTED 0x0001 | 277 | #define L2CAP_CONN_PARAM_REJECTED 0x0001 |
278 | 278 | ||
279 | /* ----- L2CAP channels and connections ----- */ | 279 | /* ----- L2CAP channels and connections ----- */ |
280 | struct srej_list { | ||
281 | __u8 tx_seq; | ||
282 | struct list_head list; | ||
283 | }; | ||
284 | |||
280 | struct l2cap_chan { | 285 | struct l2cap_chan { |
281 | struct sock *sk; | 286 | struct sock *sk; |
282 | __u8 ident; | 287 | __u8 ident; |
@@ -312,6 +317,7 @@ struct l2cap_chan { | |||
312 | struct sk_buff_head srej_q; | 317 | struct sk_buff_head srej_q; |
313 | struct sk_buff_head busy_q; | 318 | struct sk_buff_head busy_q; |
314 | struct work_struct busy_work; | 319 | struct work_struct busy_work; |
320 | struct list_head srej_l; | ||
315 | 321 | ||
316 | struct list_head list; | 322 | struct list_head list; |
317 | }; | 323 | }; |
@@ -350,12 +356,6 @@ struct l2cap_conn { | |||
350 | /* ----- L2CAP socket info ----- */ | 356 | /* ----- L2CAP socket info ----- */ |
351 | #define l2cap_pi(sk) ((struct l2cap_pinfo *) sk) | 357 | #define l2cap_pi(sk) ((struct l2cap_pinfo *) sk) |
352 | #define TX_QUEUE(sk) (&l2cap_pi(sk)->tx_queue) | 358 | #define TX_QUEUE(sk) (&l2cap_pi(sk)->tx_queue) |
353 | #define SREJ_LIST(sk) (&l2cap_pi(sk)->srej_l.list) | ||
354 | |||
355 | struct srej_list { | ||
356 | __u8 tx_seq; | ||
357 | struct list_head list; | ||
358 | }; | ||
359 | 359 | ||
360 | struct l2cap_pinfo { | 360 | struct l2cap_pinfo { |
361 | struct bt_sock bt; | 361 | struct bt_sock bt; |
@@ -385,7 +385,6 @@ struct l2cap_pinfo { | |||
385 | __le16 sport; | 385 | __le16 sport; |
386 | 386 | ||
387 | struct sk_buff_head tx_queue; | 387 | struct sk_buff_head tx_queue; |
388 | struct srej_list srej_l; | ||
389 | struct l2cap_conn *conn; | 388 | struct l2cap_conn *conn; |
390 | struct l2cap_chan *chan; | 389 | struct l2cap_chan *chan; |
391 | }; | 390 | }; |