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 }; /* If unused will be removed by compiler */ @@ -151,6 +153,10 @@ static inline const char *state_to_string(int state) return "BT_DISCONN"; case BT_CLOSED: return "BT_CLOSED"; + case BT_SCAN: + return "BT_SCAN"; + case BT_DEV_FOUND: + return "BT_DEV_FOUND"; } return "invalid state"; -- 1.8.1.1 -- 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