diff options
| author | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-15 04:03:18 -0400 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2013-12-05 10:05:35 -0500 |
| commit | 837776f7904024df451422f32b09c67e88ae2aa2 (patch) | |
| tree | ab66fbb6cfb9e53c4e5a771a7a7a9984c3bc9d33 /include/net/bluetooth | |
| parent | 3af8ace653c83c663d4b97c6ea7f01463d366bf9 (diff) | |
Bluetooth: Introduce L2CAP channel callback for suspending
Setting the BT_SK_SUSPEND socket flag from the L2CAP core is causing a
dependency on the socket. So instead of doing that, use a channel
callback into the socket handling to suspend.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
| -rw-r--r-- | include/net/bluetooth/l2cap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index d7cd1ddfe576..b0d7e4adb167 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
| @@ -593,6 +593,7 @@ struct l2cap_ops { | |||
| 593 | void (*ready) (struct l2cap_chan *chan); | 593 | void (*ready) (struct l2cap_chan *chan); |
| 594 | void (*defer) (struct l2cap_chan *chan); | 594 | void (*defer) (struct l2cap_chan *chan); |
| 595 | void (*resume) (struct l2cap_chan *chan); | 595 | void (*resume) (struct l2cap_chan *chan); |
| 596 | void (*suspend) (struct l2cap_chan *chan); | ||
| 596 | void (*set_shutdown) (struct l2cap_chan *chan); | 597 | void (*set_shutdown) (struct l2cap_chan *chan); |
| 597 | long (*get_sndtimeo) (struct l2cap_chan *chan); | 598 | long (*get_sndtimeo) (struct l2cap_chan *chan); |
| 598 | struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan, | 599 | struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan, |
