Bluetooth: Add global deferred socket parameter
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 15 Jan 2009 20:52:16 +0000 (21:52 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:23 +0000 (06:14 +0100)
commitc4f912e155504e94dd4f3d63c378dab0ff03dbda
treedb544bdd0dfc8ca890193a29b161b551f20f543c
parentd58daf42d29a3a4a4d4be46cf47ceee096789680
Bluetooth: Add global deferred socket parameter

The L2CAP and RFCOMM applications require support for authorization
and the ability of rejecting incoming connection requests. The socket
interface is not really able to support this.

This patch does the ground work for a socket option to defer connection
setup. Setting this option allows calling of accept() and then the
first read() will trigger the final connection setup. Calling close()
would reject the connection.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/bluetooth.h
net/bluetooth/af_bluetooth.c