aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-03-25 19:15:28 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-07 17:06:27 -0400
commit2c03a7a49e0831646bd35d0877ec7d051d8f174b (patch)
tree30423f04924bf1e3ce5e0f34d5c5afb84a73a696 /include
parent6f61fd475907bf0a1470cb969ee993a31d305513 (diff)
Bluetooth: Move remote info to struct l2cap_chan
As part of the moving channel stuff to l2cap_chan. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/l2cap.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 19d613bbcf00..11c53cb4a116 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -302,6 +302,9 @@ struct l2cap_chan {
302 __u16 partial_sdu_len; 302 __u16 partial_sdu_len;
303 struct sk_buff *sdu; 303 struct sk_buff *sdu;
304 304
305 __u8 remote_tx_win;
306 __u8 remote_max_tx;
307 __u16 remote_mps;
305 308
306 struct list_head list; 309 struct list_head list;
307}; 310};
@@ -370,11 +373,8 @@ struct l2cap_pinfo {
370 373
371 __u8 tx_win; 374 __u8 tx_win;
372 __u8 max_tx; 375 __u8 max_tx;
373 __u8 remote_tx_win;
374 __u8 remote_max_tx;
375 __u16 retrans_timeout; 376 __u16 retrans_timeout;
376 __u16 monitor_timeout; 377 __u16 monitor_timeout;
377 __u16 remote_mps;
378 __u16 mps; 378 __u16 mps;
379 379
380 __le16 sport; 380 __le16 sport;
@@ -431,7 +431,7 @@ static inline int l2cap_tx_window_full(struct l2cap_chan *ch)
431 if (sub < 0) 431 if (sub < 0)
432 sub += 64; 432 sub += 64;
433 433
434 return sub == l2cap_pi(ch->sk)->remote_tx_win; 434 return sub == ch->remote_tx_win;
435} 435}
436 436
437#define __get_txseq(ctrl) (((ctrl) & L2CAP_CTRL_TXSEQ) >> 1) 437#define __get_txseq(ctrl) (((ctrl) & L2CAP_CTRL_TXSEQ) >> 1)
@@ -454,7 +454,7 @@ int __l2cap_wait_ack(struct sock *sk);
454struct sk_buff *l2cap_create_connless_pdu(struct sock *sk, struct msghdr *msg, size_t len); 454struct sk_buff *l2cap_create_connless_pdu(struct sock *sk, struct msghdr *msg, size_t len);
455struct sk_buff *l2cap_create_basic_pdu(struct sock *sk, struct msghdr *msg, size_t len); 455struct sk_buff *l2cap_create_basic_pdu(struct sock *sk, struct msghdr *msg, size_t len);
456struct sk_buff *l2cap_create_iframe_pdu(struct sock *sk, struct msghdr *msg, size_t len, u16 control, u16 sdulen); 456struct sk_buff *l2cap_create_iframe_pdu(struct sock *sk, struct msghdr *msg, size_t len, u16 control, u16 sdulen);
457int l2cap_sar_segment_sdu(struct sock *sk, struct msghdr *msg, size_t len); 457int l2cap_sar_segment_sdu(struct l2cap_chan *chan, struct msghdr *msg, size_t len);
458void l2cap_do_send(struct sock *sk, struct sk_buff *skb); 458void l2cap_do_send(struct sock *sk, struct sk_buff *skb);
459void l2cap_streaming_send(struct l2cap_chan *chan); 459void l2cap_streaming_send(struct l2cap_chan *chan);
460int l2cap_ertm_send(struct l2cap_chan *chan); 460int l2cap_ertm_send(struct l2cap_chan *chan);