Bluetooth: Add support for deferring RFCOMM connection setup
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 15 Jan 2009 20:56:48 +0000 (21:56 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:23 +0000 (06:14 +0100)
commitbb23c0ab824653be4aa7dfca15b07b3059717004
treebd0390c67d129e8b5ddc2a70a1b12e383db6fa16
parentc4f912e155504e94dd4f3d63c378dab0ff03dbda
Bluetooth: Add support for deferring RFCOMM connection setup

In order to decide if listening RFCOMM sockets should be accept()ed
the BD_ADDR of the remote device needs to be known. This patch adds
a socket option which defines a timeout for deferring the actual
connection setup.

The connection setup is done after reading from the socket for the
first time. Until then writing to the socket returns ENOTCONN.

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