Re: [PATCH v2] Bluetooth: Add support for reusing the same hci_conn for LE links

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 7, 2012 at 8:13 PM, Vinicius Costa Gomes
<vinicius.gomes@xxxxxxxxxxxxx> wrote:
> 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@xxxxxxxxxxxxx>
> ---
>
> Changes: Rebased against current bluetooth-next.
>
>
>  net/bluetooth/hci_conn.c   |   32 +++++++++++++++------------
>  net/bluetooth/l2cap_core.c |   51 +++++++++++++++++++++++++++++--------------
>  2 files changed, 52 insertions(+), 31 deletions(-)

Just to complement, this also fixes an apparently recent regression
where MGMT_OP_PAIR_DEVICE was not triggering SMP pairing for LE.
Applying this patch made "simple-agent hci0 <bdaddr>" trigger SMP
pairing as before.

Best regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux