Re: [PATCH] Bluetooth: Use lower timeout for LE auto-connections

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

 



Hi Johan,

> When we establish connections as a consequence of receiving an
> advertising report it makes no sense to wait the normal 20 second LE
> connection timeout. This patch modifies the hci_connect_le function to
> take an extra timeout value and uses a lower 2 second timeout for the
> auto-connection case. This timeout is intentionally chosen to be just a
> bit higher than the 1.28 second timeout that High Duty Cycle Advertising
> uses.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> include/net/bluetooth/hci.h      | 1 +
> include/net/bluetooth/hci_core.h | 4 +++-
> net/bluetooth/hci_conn.c         | 4 +++-
> net/bluetooth/hci_event.c        | 4 ++--
> net/bluetooth/l2cap_core.c       | 2 +-
> net/bluetooth/mgmt.c             | 3 ++-
> 6 files changed, 12 insertions(+), 6 deletions(-)

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