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)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:47 +0000 (06:14 +0100)
commit8bf4794174659b06d43cc5e290cd384757374613
treed728d18b4725e1b4f4b421703e020af16772008c
parentd5f2d2be68876f65dd051b978a7b66265fde9ffd
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