Re: [PATCH v2 2/2] Bluetooth: Add timeout for LE connection attempts

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

 



Hi Johan,

> LE connection attempts do not have a controller side timeout in the same
> way as BR/EDR has (in form of the page timeout). Since we always do
> scanning before initiating connections the attempts are always expected
> to succeed in some reasonable time.
> 
> This patch adds a timer which forces a cancellation of the connection
> attempt within 20 seconds if it has not been successful by then. This
> way we e.g. ensure that mgmt_pair_device times out eventually and gives
> an error response.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> include/net/bluetooth/hci.h      |  1 +
> include/net/bluetooth/hci_core.h |  1 +
> net/bluetooth/hci_conn.c         | 13 +++++++++++++
> net/bluetooth/hci_event.c        | 12 ++++++++++++
> 4 files changed, 27 insertions(+)

both patches have been applied to bluetooth-next tree.

Regards

Marcel

--
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