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: nRF51x: Use BT_LL_SW_LLCP_LEGACY #75197

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

cvinayak
Copy link
Contributor

@cvinayak cvinayak commented Jun 29, 2024

Related to #74345.

@thedjnK
Copy link
Collaborator

thedjnK commented Jul 10, 2024

Seems I'm still getting weird issues with this, e.g.:

E: ***** HARD FAULT *****
E: ARCH_EXCEPT with reason 3

E: r0/a1:  0x00000003  r1/a2:  0x0203001b  r2/a3:  0x40001000
E: r3/a4:  0x00000003 r12/ip:  0x000f6c74 r14/lr:  0x00016099
E:  xpsr:  0x01000011
E: Faulting instruction address (r15/pc): 0x000160a8
E: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
E: Fault during interrupt handling

E: Current thread: 0x20000ff8 (sysworkq)
E: Halting system

which is: zephyr/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c:403 (discriminator 3)

@thedjnK
Copy link
Collaborator

thedjnK commented Jul 11, 2024

Seemingly haven't been able to replicate that issue again, does seem to be working, thanks @cvinayak !

@cvinayak
Copy link
Contributor Author

Seemingly haven't been able to replicate that issue again, does seem to be working, thanks @cvinayak !

I will rebase after Zephyr v3.7.0 release, and tag it in my github fork. If anyone wants to use it for there old nrf51 SoC boards, they can maintain it as required.

This reverts commit 4215854.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This reverts commit e6a3def.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
…ling"

This reverts commit 729c3e3.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This reverts commit f6172f3.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
@cvinayak cvinayak force-pushed the github_llcp_legacy branch 2 times, most recently from 4c9dafe to a7f2fff Compare October 13, 2024 05:01
@cvinayak
Copy link
Contributor Author

Seemingly haven't been able to replicate that issue again, does seem to be working, thanks @cvinayak !

I will rebase after Zephyr v3.7.0 release, and tag it in my github fork. If anyone wants to use it for there old nrf51 SoC boards, they can maintain it as required.

Tagged before rebase to latest upstream (not v3.7.0, but later though): https://github.com/cvinayak/zephyr/releases/tag/bt_ctlr_llcp_legacy_202407

This reverts commit 2ada005.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This reverts commit a5e7ba3.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This is a manual fix to have Peripheral CIS procedure in
legacy LLCP.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This is a manual fix to have legacy LLCP compiling

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Update implementation to correctly use reference connection
event count present in the Connection Parameter Request PDU
and the connection event when the window offset is selected
to perform the Connection Update.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Fix the advanced scheduling implementation of
win_offset_calc() function to consider both active central
and active peripheral roles as occupied timespace when
determining the free timespace available to fill the offsets
in the connection parameter request PDU.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Add implementation to find free connection offsets after a
connection of same interval. This is re-group connection of
same interval when Connection Parameter Request procedure is
performed from different connection intervals.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Add BabbleSim test to cover the automatic preferred
peripheral connection parameter requests across multiple
simultaneous connections.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Use BT_LL_SW_LLCP_LEGACY for nRF51x SoCs.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
Enable Privacy Support, upto 2 bonds tested to have
no issues when using a modified peripheral_accept_list.

Relates to commit 93ca60b ("Bluetooth: controller:
Require nRF52 for privacy").

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
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.

2 participants