Bluetooth: Add chan->ops->defer()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 12 Oct 2012 11:35:24 +0000 (19:35 +0800)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 15 Oct 2012 12:43:29 +0000 (09:43 -0300)
commit2dc4e5105f012bda7eef2f459ed3d5299ded9672
tree2be48be9acb76a53cd37a53dec803967503c2ed8
parent644912e18ac1d27f57f6673b0236b568ff750fd1
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>
include/net/bluetooth/l2cap.h
net/bluetooth/a2mp.c
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c