aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-10-12 07:35:24 -0400
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-10-15 08:43:29 -0400
commit2dc4e5105f012bda7eef2f459ed3d5299ded9672 (patch)
tree2be48be9acb76a53cd37a53dec803967503c2ed8 /include/net/bluetooth
parent644912e18ac1d27f57f6673b0236b568ff750fd1 (diff)
Bluetooth: Add chan->ops->defer()
When DEFER_SETUP is set defer() will trigger an authorization request to the userspace. l2cap_chan_no_defer() is meant to be used when one does not want to support DEFER_SETUP (A2MP for example). Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/l2cap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index caab98c4512..6e23afdf65c 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -541,6 +541,7 @@ struct l2cap_ops {
541 void (*state_change) (struct l2cap_chan *chan, 541 void (*state_change) (struct l2cap_chan *chan,
542 int state); 542 int state);
543 void (*ready) (struct l2cap_chan *chan); 543 void (*ready) (struct l2cap_chan *chan);
544 void (*defer) (struct l2cap_chan *chan);
544 struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan, 545 struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan,
545 unsigned long len, int nb); 546 unsigned long len, int nb);
546}; 547};
@@ -748,6 +749,10 @@ static inline void l2cap_chan_no_ready(struct l2cap_chan *chan)
748{ 749{
749} 750}
750 751
752static inline void l2cap_chan_no_defer(struct l2cap_chan *chan)
753{
754}
755
751extern bool disable_ertm; 756extern bool disable_ertm;
752 757
753int l2cap_init_sockets(void); 758int l2cap_init_sockets(void);