aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-05-27 21:27:52 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-04 23:34:10 -0400
commitc0df7f6e06e1aeccee39c801af7f78cadeb9f345 (patch)
treee5dbd0ee76df7d761c6315cc07ab5df4fa861cc4 /include/net
parent80b980279508edd1a92d8d77ec99b0ddad00c5fe (diff)
Bluetooth: Move clean up code and set of SOCK_ZAPPED to l2cap_sock.c
This remove a bit more of socket code from l2cap core, this calls set the SOCK_ZAPPED and do some clean up depending on the socket state. Reported-by: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/l2cap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index aa2dbc680d5c..76b0e7e5dec2 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -530,6 +530,7 @@ struct l2cap_ops {
530 struct l2cap_chan *(*new_connection) (struct l2cap_chan *chan); 530 struct l2cap_chan *(*new_connection) (struct l2cap_chan *chan);
531 int (*recv) (struct l2cap_chan * chan, 531 int (*recv) (struct l2cap_chan * chan,
532 struct sk_buff *skb); 532 struct sk_buff *skb);
533 void (*teardown) (struct l2cap_chan *chan, int err);
533 void (*close) (struct l2cap_chan *chan); 534 void (*close) (struct l2cap_chan *chan);
534 void (*state_change) (struct l2cap_chan *chan, 535 void (*state_change) (struct l2cap_chan *chan,
535 int state); 536 int state);