Skip to content

Bluetooth: hci_sync: fix mesh adv timeout units

Pauli Virtanen linux-bluetooth 1 version Applied

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2Bluetooth: hci_sync: fix mesh adv timeout unitsnet/bluetooth/hci_sync.c+4 -21 replyApplied
2/2Bluetooth: make hdev->adv_instance_timeout a booleaninclude/net/bluetooth/hci_core.h net/bluetooth/hci_core.c net/bluetooth/hci_sync.c +1 more+9 -90 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Bluetooth: hci_sync: fix mesh adv timeout units

For mesh advertisements = adv_info::mesh nonzero, the time units are milliseconds instead of seconds like normally.

This was forgotten in hci_schedule_adv_instance_sync() and hci_enable_ext_advertising_sync() which scheduled 1000x too large timeouts.

Fix that. This is the cause for the mesh-tester "Mesh - Send cancel" failures.

Since the timeout units depend on the adv type, make hdev->adv_instance_timeout to just bool indicating if timeout is active or not.

Triaged via LLM. I wrote the patches.

Assisted-by opencode:qwen3.8-flash-next

Pauli Virtanen (2):
Bluetooth: hci_sync: fix mesh adv timeout units
Bluetooth: make hdev->adv_instance_timeout a boolean

 include/net/bluetooth/hci_core.h |  2 +-
 net/bluetooth/hci_core.c         |  6 +++---
 net/bluetooth/hci_sync.c         | 14 ++++++++------
 net/bluetooth/mgmt.c             |  2 +-
 4 files changed, 13 insertions(+), 11 deletions(-)
Signature · 1 line
2.55.0