Bluetooth: Fix poll() misbehavior when using BT_DEFER_SETUP
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Feb 2009 01:57:30 +0000 (02:57 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:46 +0000 (06:14 +0100)
When BT_DEFER_SETUP has been enabled on a Bluetooth socket it keeps
signaling POLLIN all the time. This is a wrong behavior. The POLLIN
should only be signaled if the client socket is in BT_CONNECT2 state
and the parent has been BT_DEFER_SETUP enabled.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

No differences found