OSDN Git Service

Bluetooth: Add support for deferring RFCOMM connection setup
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 15 Jan 2009 20:56:48 +0000 (21:56 +0100)
committerNick Pelly <npelly@google.com>
Tue, 7 Apr 2009 00:39:27 +0000 (17:39 -0700)
commitca7aec8e2723be6d3916674cc6aac562c412b783
tree635ce09469e0f54696d8a6f146505e61619b07c0
parent8119bf0f13c7ecd04026e8b506d94aec9c93554f
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