Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth: controller: Fix conn update assert in slave role #11764

Merged

Conversation

cvinayak
Copy link
Contributor

Explicitly track the connection update related ticker stop
and start to avoid asserting due to ticker update being done
at the same time for compensating the clock drift.

The compensation related ticker update failure in this case
can be safely ignored as new anchor point is used anyway
at the instant of the connection update.

Fixes #8796

Signed-off-by: Vinayak Kariappa Chettimada [email protected]

Explicitly track the connection update related ticker stop
and start to avoid asserting due to ticker update being done
at the same time for compensating the clock drift.

The compensation related ticker update failure in this case
can be safely ignored as new anchor point is used anyway
at the instant of the connection update.

Fixes zephyrproject-rtos#8796

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
@aescolar
Copy link
Member

aescolar commented Dec 2, 2018

recheck

@codecov-io
Copy link

Codecov Report

Merging #11764 into master will increase coverage by 0.05%.
The diff coverage is 26.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11764      +/-   ##
==========================================
+ Coverage    48.2%   48.26%   +0.05%     
==========================================
  Files         280      280              
  Lines       43323    43328       +5     
  Branches    10374    10373       -1     
==========================================
+ Hits        20886    20913      +27     
+ Misses      18289    18265      -24     
- Partials     4148     4150       +2
Impacted Files Coverage Δ
subsys/bluetooth/controller/ll_sw/ctrl.c 42.61% <26.66%> (-0.07%) ⬇️
subsys/logging/log_core.c 71.24% <0%> (-3.44%) ⬇️
include/net/net_if.h 58.97% <0%> (-1.03%) ⬇️
include/atomic.h 100% <0%> (ø) ⬆️
lib/rbtree/rb.c 97.85% <0%> (ø) ⬆️
subsys/usb/usb_device.c 0% <0%> (ø) ⬆️
subsys/net/l2/dummy/dummy.c 100% <0%> (ø) ⬆️
kernel/sched.c 92.78% <0%> (ø) ⬆️
include/net/ethernet.h 56.25% <0%> (ø) ⬆️
include/net/net_pkt.h 85.84% <0%> (+0.13%) ⬆️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1f176e4...f49f622. Read the comment docs.

@carlescufi carlescufi merged commit a2f2d23 into zephyrproject-rtos:master Dec 3, 2018
cvinayak added a commit to cvinayak/zephyr that referenced this pull request Jun 5, 2019
Explicitly track the connection update related ticker stop
and start to avoid asserting due to ticker update being done
at the same time for compensating the master clock drift.

Relates to zephyrproject-rtos#11764.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
aescolar pushed a commit that referenced this pull request Jun 11, 2019
Explicitly track the connection update related ticker stop
and start to avoid asserting due to ticker update being done
at the same time for compensating the master clock drift.

Relates to #11764.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
@cvinayak cvinayak deleted the github_cu_assert_fix branch March 1, 2021 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants