Skip to content

Commit

Permalink
Bluetooth: Move conn_state to struct l2cap_chan
Browse files Browse the repository at this point in the history
This is part of "moving things to l2cap_chan". As one the first move it
triggered a big number of changes in the funcions parameters, basically
changing the struct sock param to struct l2cap_chan.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Gustavo F. Padovan committed Apr 7, 2011
1 parent 710f9b0 commit 525cd18
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 195 deletions.
5 changes: 3 additions & 2 deletions include/net/bluetooth/l2cap.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ struct l2cap_chan {
__u8 num_conf_req;
__u8 num_conf_rsp;

__u16 conn_state;

struct list_head list;
};

Expand Down Expand Up @@ -350,7 +352,6 @@ struct l2cap_pinfo {
__u8 flushable;

__u8 conf_state;
__u16 conn_state;

__u8 next_tx_seq;
__u8 expected_ack_seq;
Expand Down Expand Up @@ -456,7 +457,7 @@ struct sk_buff *l2cap_create_iframe_pdu(struct sock *sk, struct msghdr *msg, siz
int l2cap_sar_segment_sdu(struct sock *sk, struct msghdr *msg, size_t len);
void l2cap_do_send(struct sock *sk, struct sk_buff *skb);
void l2cap_streaming_send(struct sock *sk);
int l2cap_ertm_send(struct sock *sk);
int l2cap_ertm_send(struct l2cap_chan *chan);

void l2cap_sock_set_timer(struct sock *sk, long timeout);
void l2cap_sock_clear_timer(struct sock *sk);
Expand Down
Loading

0 comments on commit 525cd18

Please sign in to comment.