Skip to contentSkip to conversation

Bluetooth: hci_sync: Fix not setting adv set duration

PATCH In review Luiz Augusto von Dentz 2 participants 2 messages Nov 1, 2021 – Nov 2, 2021

Subsystems (2)
lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: hci_sync: Fix not setting adv set duration

From: Luiz Augusto von Dentz <[email protected]>

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")
---
 net/bluetooth/hci_sync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/hci_sync.c +1 -1
index fb7ecf24b89a..b794605dc882 100644
@@ -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 */
Signature · 1 line
2.31.1
maintainer
#1 lore raw

Hi Luiz,

Quoted 9 lines

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

---
net/bluetooth/hci_sync.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel