Hi Marcel, On Fri, Feb 1, 2013 at 9:51 PM, Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote: > Hi Andre, > >> This patch adds two new connection states which will be used by >> hci_conn to establish LE connections. >> >> BT_SCAN state means the controller is scanning for LE devices. Once >> the target device is found, the connection goes to BT_DEV_FOUND >> state, and then to BT_CONNECT state. >> >> Signed-off-by: Andre Guedes <andre.guedes@xxxxxxxxxxxxx> >> --- >> include/net/bluetooth/bluetooth.h | 8 +++++++- >> 1 file changed, 7 insertions(+), 1 deletion(-) >> >> diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h >> index 9531bee..add5721 100644 >> --- a/include/net/bluetooth/bluetooth.h >> +++ b/include/net/bluetooth/bluetooth.h >> @@ -126,7 +126,9 @@ enum { >> BT_CONNECT2, >> BT_CONFIG, >> BT_DISCONN, >> - BT_CLOSED >> + BT_CLOSED, >> + BT_SCAN, >> + BT_DEV_FOUND >> }; > > I am actually against this. These states where originally socket states > and not general states that we just pile on top of. > > You need to create separate state handling for LE connection handling. I > am really not happy that we always try to shoe-horn this onto something > else. Ok, I'll create a separated state for LE connection handling. Regards, Andre -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html