]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Limit duration of Remote Name Resolve
authorArchie Pusaka <apusaka@chromium.org>
Thu, 25 Nov 2021 07:04:37 +0000 (15:04 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 25 Nov 2021 20:08:19 +0000 (21:08 +0100)
commit5bfdc151bdf355e727f55040d021ee107cca9917
treed75ef3450375b082509aea55b3a63486a9f5f49c
parentacb79a6dced7645ab04b8dfb970b5af8bb8611c6
Bluetooth: Limit duration of Remote Name Resolve

When doing remote name request, we cannot scan. In the normal case it's
OK since we can expect it to finish within a short amount of time.
However, there is a possibility to scan lots of devices that
(1) requires Remote Name Resolve
(2) is unresponsive to Remote Name Resolve
When this happens, we are stuck to do Remote Name Resolve until all is
done before continue scanning.

This patch adds a time limit to stop us spending too long on remote
name request.

Signed-off-by: Archie Pusaka <apusaka@chromium.org>
Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c