summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-11-01 15:14:41 -0700
committerMarcel Holtmann <marcel@holtmann.org>2021-11-02 07:32:38 +0100
commitf16a491c65d9eb19398b25aefc10c2d3313d17b3 (patch)
tree1d5a92b087777d84b0cf58f7d3192641e5a9e134 /net/bluetooth
parent27592ca1fadf2d2a44bb24ecc5da604fd840d633 (diff)
Bluetooth: hci_sync: Fix not setting adv set duration
10bbffa3e88e attempted to fix the use of rotation duration as advertising duration but it didn't change the if condition which still uses the duration instead of the timeout. Fixes: 10bbffa3e88e ("Bluetooth: Fix using advertising instance duration as timeout") Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index fb7ecf24b89a..b794605dc882 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -895,7 +895,7 @@ int hci_enable_ext_advertising_sync(struct hci_dev *hdev, u8 instance)
/* Set duration per instance since controller is responsible for
* scheduling it.
*/
- if (adv && adv->duration) {
+ if (adv && adv->timeout) {
u16 duration = adv->timeout * MSEC_PER_SEC;
/* Time = N * 10 ms */