zephyr/tests/bsim
Rubin Gerritsen ff80c0b926 Bluetooth: Host: Fix connection establishment upon RPA timeout
Before this commit, the following bugs were present:
- When `CONFIG_BT_FILTER_ACCEPT_LIST` was set, connection establishment
  was cancelled upon RPA timeout. This required the application
  to restart the initiator every RPA timeout.
- When `CONFIG_BT_FILTER_ACCEPT_LIST` was not set, the RPA was not updated
  while the initiator was running.

This commit unifies the RPA timeout handling for both these cases.
Upon RPA timeout the initiator is cancelled and restarted when
the controller raises the LE Connection Complete event.
The workqueue state is checked when restarting the initiator to prevent
it being restarted when the timeout is hit.

Corresponding test cases have been added to ensure that this
feature works.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2024-05-28 09:12:05 -07:00
..
babblekit tests: Bluetooth: Add common helpers for bsim 2024-04-10 07:43:41 -04:00
bluetooth Bluetooth: Host: Fix connection establishment upon RPA timeout 2024-05-28 09:12:05 -07:00
drivers/uart tests/bsim sh scripts: Reduce boilerplate 2024-03-25 16:17:13 +01:00
net tests: net: sockets: Remove use of NET_SOCKETS_POSIX_NAMES 2024-03-27 13:40:13 -05:00
compile.sh tests/bsim sh scripts: Reduce boilerplate 2024-03-25 16:17:13 +01:00
compile.source tests: bsim: Enable asserts by default 2024-05-27 03:39:50 -07:00
generate_coverage_report.sh tests/bsim: Add a script to generate coverage reports 2023-04-21 16:23:35 +02:00
run_parallel.sh tests/bsim: Fix not detecting failures 2024-04-15 16:24:12 +02:00
sh_common.source tests/bsim/common sh: Improve getting test name/relative path 2024-04-10 07:43:21 -04:00