aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-03-24 23:22:30 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-04-07 17:06:25 -0400
commit48454079c2d4b9ee65c570a22c5fdfe1827996a4 (patch)
tree9476bb42ae7eac59ac53688a267c4cc0f7b13b86 /net/bluetooth/l2cap_sock.c
parentdb940cb0db7c69a217661ecd49e1e6b0d680a6cc (diff)
Bluetooth: Create struct l2cap_chan
struct l2cap_chan cames to create a clear separation between what properties and data belongs to the L2CAP channel and what belongs to the socket. By now we just fold the struct sock * in struct l2cap_chan as all the channel info is struct l2cap_pinfo today. In the next commits we will see a move of channel stuff to struct l2cap_chan. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
-rw-r--r--net/bluetooth/l2cap_sock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index f77308e63e58..7df81181a119 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -902,7 +902,7 @@ void __l2cap_sock_close(struct sock *sk, int reason)
902 l2cap_sock_set_timer(sk, sk->sk_sndtimeo); 902 l2cap_sock_set_timer(sk, sk->sk_sndtimeo);
903 l2cap_send_disconn_req(conn, sk, reason); 903 l2cap_send_disconn_req(conn, sk, reason);
904 } else 904 } else
905 l2cap_chan_del(sk, reason); 905 l2cap_chan_del(l2cap_pi(sk)->chan, reason);
906 break; 906 break;
907 907
908 case BT_CONNECT2: 908 case BT_CONNECT2:
@@ -925,12 +925,12 @@ void __l2cap_sock_close(struct sock *sk, int reason)
925 L2CAP_CONN_RSP, sizeof(rsp), &rsp); 925 L2CAP_CONN_RSP, sizeof(rsp), &rsp);
926 } 926 }
927 927
928 l2cap_chan_del(sk, reason); 928 l2cap_chan_del(l2cap_pi(sk)->chan, reason);
929 break; 929 break;
930 930
931 case BT_CONNECT: 931 case BT_CONNECT:
932 case BT_DISCONN: 932 case BT_DISCONN:
933 l2cap_chan_del(sk, reason); 933 l2cap_chan_del(l2cap_pi(sk)->chan, reason);
934 break; 934 break;
935 935
936 default: 936 default: