-
Notifications
You must be signed in to change notification settings - Fork 1.4k
mcumgr/grp/os_mgmt: hook for disabling BT on nrf54Lx #26118
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
mcumgr/grp/os_mgmt: hook for disabling BT on nrf54Lx #26118
Conversation
| int32_t *rc, uint16_t *group, bool *abort_more, | ||
| void *data, size_t data_size) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indent
| struct os_mgmt_reset_data *reboot_data = | ||
| (struct os_mgmt_reset_data *)data; | ||
|
|
||
| if (event != MGMT_EVT_OP_OS_MGMT_RESET || data_size != | ||
| sizeof(*reboot_data)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the line size is 100 chars, fix this because these can go on one line, etc. in whole PR
| } | ||
|
|
||
| #ifdef CONFIG_BT | ||
| err_rc = bt_disable(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent is off
| #ifdef CONFIG_BT | ||
| err_rc = bt_disable(); | ||
| if (err_rc) { | ||
| LOG_ERR("BT disable failed before reboot: %d\n", err_rc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logging appends \n for you, remove
|
|
||
| static int os_mgmt_register_reboot_bt(void) | ||
| { | ||
| mgmt_callback_register(&cmd_reboot_bt_info_cb ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space before )
CI InformationTo view the history of this post, click the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 2b03595d21ad7a869ef2a189f45396850bb25496 more detailssdk-nrf:
Github labels
List of changed files detected by CI (3)Outputs:ToolchainVersion: 43683a87ea Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
|
You can find the documentation preview for this PR here. |
b823da5 to
738f547
Compare
Added hook implementation for disabling Bluetooth in the hook of MCUmgr OS reboot command. Disabling of bluetooth allow to restart it properly after the warm boot. Ref: NCSDK-36564 Signed-off-by: Andrzej Puzdrowski <[email protected]>
13d4623 to
2e6d069
Compare
Postpone disabling till half of waiting of reset time. Ref: NCSDK-36564 Signed-off-by: Andrzej Puzdrowski <[email protected]>
2e6d069 to
2b03595
Compare
Memory footprint analysis revealed the following potential issuesapplications.nrf_desktop.zdebug_fast_pair.gmouse.uart[nrf54l15dk/nrf54l15/cpuapp]: ROM size increased by 1484[B] in comparison to the main[4f99b6c] branch. - link (cc: @nrfconnect/ncs-si-bluebagel) Note: This message is automatically posted and updated by the CI (latest/sdk-nrf/PR-26118/6) |
Added hook implementation for disabling Bluetooth in the hook of MCUmgr OS reboot command.
Disabling of bluetooth allow to restart it properly after the warm boot.
Replacement to nrfconnect/sdk-zephyr#3609
Ref: NCSDK-36564