OSDN Git Service

Bluetooth: Change RFCOMM to use BT_CONNECT2 for BT_DEFER_SETUP
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Feb 2009 01:59:49 +0000 (02:59 +0100)
committerNick Pelly <npelly@google.com>
Tue, 7 Apr 2009 00:39:30 +0000 (17:39 -0700)
commitfd67941498eddc17fbb39e09a99e28cedbedc69a
tree0eae285d24da557537ed31bd569cbd2700601e9e
parentb692ca43ac8c0fed6b004ca212b15a17e159b3fa
Bluetooth: Change RFCOMM to use BT_CONNECT2 for BT_DEFER_SETUP

When BT_DEFER_SETUP is enabled on a RFCOMM socket, then switch its
current state from BT_OPEN to BT_CONNECT2. This gives the Bluetooth
core a unified way to handle L2CAP and RFCOMM sockets. The BT_CONNECT2
state is designated for incoming connections.

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