]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Add support for reusing the same hci_conn for LE links
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Fri, 20 Apr 2012 18:46:08 +0000 (15:46 -0300)
committerGustavo Padovan <gustavo@padovan.org>
Mon, 23 Apr 2012 13:02:17 +0000 (10:02 -0300)
commit8b9ff6ef2a94771f4d731957ba23c60517e51b7b
tree01c84fbf6fc6b26da7ef3b8a2528da77c27664ad
parent5c90d283145c61a2ec2881aaf234cb71f0541f89
Bluetooth: Add support for reusing the same hci_conn for LE links

As most LE devices leave advertising mode when they enter the connected
state, we may want to "pass" that connection to other users.

The first user will be the pairing procedure, the connection is
established without an associated socket, after the pairing is
complete, userspace may want to discover via GATT what services the
newly bonded device has.

If userspace establishes the connection while the timeout still
hasn't expired, the connection will be re-used.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Tested-by: João Paulo Rechi Vita <jprvita@openbossa.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
net/bluetooth/hci_conn.c
net/bluetooth/l2cap_core.c