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

net: openthread: pull fixes for logging and enabling BLE in OpenThread #2456

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

maciejbaczmanski
Copy link
Member

@maciejbaczmanski maciejbaczmanski commented Jan 30, 2025

Pull commits from upstream:

  • openthread: fix logging configuration
  • net: openthread: fix otPlatBleEnable

Currently, `CONFIG_OPENTHREAD_LOG_LEVEL` is used to set log level
in OT and register log modules in Zephyr. OpenThread allows 5
levels, causing issues when `OPENTHREAD_LOG_LEVEL_DEBG` is
selected ad we are trying to register modules with unknown lvl.

This commit adds `CONFIG_OPENTHREAD_MODULE_LOG_LEVEL` which is
aligned for Zephyr's log levels.

Signed-off-by: Maciej Baczmanski <[email protected]>
(cherry picked from commit 341359568fdbaa217d8c1f71064e97af985a867f)
If BLE has already been enabled, `bt_enable` returns immediately
and does not call passed callback function.
In this case, call `bt_conn_cb_register` to ensure that callbacks
are registered correctly.

Signed-off-by: Maciej Baczmanski <[email protected]>
(cherry picked from commit 1bd8e4459ae161588c5310600dca991bf8d4dbec)
@rlubos rlubos merged commit a2eaddb into nrfconnect:main Jan 31, 2025
19 of 20 checks passed
@maciejbaczmanski maciejbaczmanski deleted the ot_ble_and_logs branch January 31, 2025 09:09
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.

5 participants