Skip to content

[nrf fromtree] Bluetooth: Host: Validate periodic advertising report length #17277

[nrf fromtree] Bluetooth: Host: Validate periodic advertising report length

[nrf fromtree] Bluetooth: Host: Validate periodic advertising report length #17277

Triggered via pull request September 24, 2026 05:24
Status Success
Total duration 3m 23s
Artifacts 1

compliance.yml

on: pull_request
Run compliance checks on patch series (PR)
3m 20s
Run compliance checks on patch series (PR)
Fit to window
Zoom out
Zoom in

Annotations

1 warning and 2 notices
Run compliance checks on patch series (PR): ClangFormat.txt#L0
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details. You may want to run clang-format on this change: - { BT_HCI_OP_READ_LOCAL_VERSION_INFO, sizeof(struct bt_hci_rp_read_local_version_info), - generic_success }, - { BT_HCI_OP_READ_SUPPORTED_COMMANDS, sizeof(struct bt_hci_rp_read_supported_commands), - read_supported_commands }, - { BT_HCI_OP_READ_LOCAL_FEATURES, sizeof(struct bt_hci_rp_read_local_features), - read_local_features }, - { BT_HCI_OP_READ_BD_ADDR, sizeof(struct bt_hci_rp_read_bd_addr), generic_success }, - { BT_HCI_OP_SET_EVENT_MASK, sizeof(struct bt_hci_evt_cc_status), generic_success }, - { BT_HCI_OP_LE_SET_EVENT_MASK, sizeof(struct bt_hci_evt_cc_status), generic_success }, - { BT_HCI_OP_LE_READ_LOCAL_FEATURES, sizeof(struct bt_hci_rp_le_read_local_features), - le_read_local_features }, - { BT_HCI_OP_LE_READ_SUPP_STATES, sizeof(struct bt_hci_rp_le_read_supp_states), - le_read_supp_states }, - { BT_HCI_OP_LE_RAND, sizeof(struct bt_hci_rp_le_rand), generic_success }, - { BT_HCI_OP_LE_SET_RANDOM_ADDRESS, sizeof(struct bt_hci_cp_le_set_random_address), - generic_success }, - { BT_HCI_OP_LE_SET_EXT_SCAN_PARAM, sizeof(struct bt_hci_evt_cc_status), generic_success }, - { BT_HCI_OP_LE_SET_EXT_SCAN_ENABLE, sizeof(struct bt_hci_evt_cc_status), generic_success }, - { BT_HCI_OP_LE_PER_ADV_CREATE_SYNC, 0, generic_status }, - { BT_HCI_OP_RESET, sizeof(struct bt_hci_evt_cc_status), generic_success }, + {BT_HCI_OP_READ_LOCAL_VERSION_INFO, sizeof(struct bt_hci_rp_read_local_version_info), + generic_success}, + {BT_HCI_OP_READ_SUPPORTED_COMMANDS, sizeof(struct bt_hci_rp_read_supported_commands), + read_supported_commands}, + {BT_HCI_OP_READ_LOCAL_FEATURES, sizeof(struct bt_hci_rp_read_local_features), + read_local_features}, + {BT_HCI_OP_READ_BD_ADDR, sizeof(struct bt_hci_rp_read_bd_addr), generic_success}, + {BT_HCI_OP_SET_EVENT_MASK, sizeof(struct bt_hci_evt_cc_status), generic_success}, + {BT_HCI_OP_LE_SET_EVENT_MASK, sizeof(struct bt_hci_evt_cc_status), generic_success}, + {BT_HCI_OP_LE_READ_LOCAL_FEATURES, sizeof(struct bt_hci_rp_le_read_local_features), + le_read_local_features}, + {BT_HCI_OP_LE_READ_SUPP_STATES, sizeof(struct bt_hci_rp_le_read_supp_states), + le_read_supp_states}, + {BT_HCI_OP_LE_RAND, sizeof(struct bt_hci_rp_le_rand), generic_success}, + {BT_HCI_OP_LE_SET_RANDOM_ADDRESS, sizeof(struct bt_hci_cp_le_set_random_address), + generic_success}, + {BT_HCI_OP_LE_SET_EXT_SCAN_PARAM, sizeof(struct bt_hci_evt_cc_status), generic_success}, + {BT_HCI_OP_LE_SET_EXT_SCAN_ENABLE, sizeof(struct bt_hci_evt_cc_status), generic_success}, + {BT_HCI_OP_LE_PER_ADV_CREATE_SYNC, 0, generic_status}, + {BT_HCI_OP_RESET, sizeof(struct bt_hci_evt_cc_status), generic_success}, File:tests/bluetooth/host_long_adv_recv/src/main.c Line:239 You may want to run clang-format on this change: - struct test_adv_report report = { .length = 20 }; + struct test_adv_report report = {.length = 20}; File:tests/bluetooth/host_long_adv_recv/src/main.c Line:622
You may want to run clang-format on this change: tests/bluetooth/host_long_adv_recv/src/main.c#L622
tests/bluetooth/host_long_adv_recv/src/main.c:622 - struct test_adv_report report = { .length = 20 }; + struct test_adv_report report = {.length = 20}; See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change: tests/bluetooth/host_long_adv_recv/src/main.c#L239
tests/bluetooth/host_long_adv_recv/src/main.c:239 - { BT_HCI_OP_READ_LOCAL_VERSION_INFO, sizeof(struct bt_hci_rp_read_local_version_info), - generic_success }, - { BT_HCI_OP_READ_SUPPORTED_COMMANDS, sizeof(struct bt_hci_rp_read_supported_commands), - read_supported_commands }, - { BT_HCI_OP_READ_LOCAL_FEATURES, sizeof(struct bt_hci_rp_read_local_features), - read_local_features }, - { BT_HCI_OP_READ_BD_ADDR, sizeof(struct bt_hci_rp_read_bd_addr), generic_success }, - { BT_HCI_OP_SET_EVENT_MASK, sizeof(struct bt_hci_evt_cc_status), generic_success }, - { BT_HCI_OP_LE_SET_EVENT_MASK, sizeof(struct bt_hci_evt_cc_status), generic_success }, - { BT_HCI_OP_LE_READ_LOCAL_FEATURES, sizeof(struct bt_hci_rp_le_read_local_features), - le_read_local_features }, - { BT_HCI_OP_LE_READ_SUPP_STATES, sizeof(struct bt_hci_rp_le_read_supp_states), - le_read_supp_states }, - { BT_HCI_OP_LE_RAND, sizeof(struct bt_hci_rp_le_rand), generic_success }, - { BT_HCI_OP_LE_SET_RANDOM_ADDRESS, sizeof(struct bt_hci_cp_le_set_random_address), - generic_success }, - { BT_HCI_OP_LE_SET_EXT_SCAN_PARAM, sizeof(struct bt_hci_evt_cc_status), generic_success }, - { BT_HCI_OP_LE_SET_EXT_SCAN_ENABLE, sizeof(struct bt_hci_evt_cc_status), generic_success }, - { BT_HCI_OP_LE_PER_ADV_CREATE_SYNC, 0, generic_status }, - { BT_HCI_OP_RESET, sizeof(struct bt_hci_evt_cc_status), generic_success }, + {BT_HCI_OP_READ_LOCAL_VERSION_INFO, sizeof(struct bt_hci_rp_read_local_version_info), + generic_success}, + {BT_HCI_OP_READ_SUPPORTED_COMMANDS, sizeof(struct bt_hci_rp_read_supported_commands), + read_supported_commands}, + {BT_HCI_OP_READ_LOCAL_FEATURES, sizeof(struct bt_hci_rp_read_local_features), + read_local_features}, + {BT_HCI_OP_READ_BD_ADDR, sizeof(struct bt_hci_rp_read_bd_addr), generic_success}, + {BT_HCI_OP_SET_EVENT_MASK, sizeof(struct bt_hci_evt_cc_status), generic_success}, + {BT_HCI_OP_LE_SET_EVENT_MASK, sizeof(struct bt_hci_evt_cc_status), generic_success}, + {BT_HCI_OP_LE_READ_LOCAL_FEATURES, sizeof(struct bt_hci_rp_le_read_local_features), + le_read_local_features}, + {BT_HCI_OP_LE_READ_SUPP_STATES, sizeof(struct bt_hci_rp_le_read_supp_states), + le_read_supp_states}, + {BT_HCI_OP_LE_RAND, sizeof(struct bt_hci_rp_le_rand), generic_success}, + {BT_HCI_OP_LE_SET_RANDOM_ADDRESS, sizeof(struct bt_hci_cp_le_set_random_address), + generic_success}, + {BT_HCI_OP_LE_SET_EXT_SCAN_PARAM, sizeof(struct bt_hci_evt_cc_status), generic_success}, + {BT_HCI_OP_LE_SET_EXT_SCAN_ENABLE, sizeof(struct bt_hci_evt_cc_status), generic_success}, + {BT_HCI_OP_LE_PER_ADV_CREATE_SYNC, 0, generic_status}, + {BT_HCI_OP_RESET, sizeof(struct bt_hci_evt_cc_status), generic_success}, See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.

Artifacts

Produced during runtime
Name Size Digest
compliance.xml
1.27 KB
sha256:10155184e5016e887941aae16b1592df556ec44553ab27e2e787b3c0fcebc459