DNM Add support for PBP testing (CI test) #7917
Annotations
1 error, 1 warning, and 9 notices
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
-#define BTP_PBP_READ_SUPPORTED_COMMANDS 0x01
+#define BTP_PBP_READ_SUPPORTED_COMMANDS 0x01
File:tests/bluetooth/tester/src/audio/btp/btp_pbp.h
Line:10
You may want to run clang-format on this change:
- if ((info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) ||
- info->interval == 0) {
+ if ((info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) || info->interval == 0) {
File:tests/bluetooth/tester/src/audio/btp_pbp.c
Line:65
You may want to run clang-format on this change:
-static uint8_t pbp_read_supported_commands(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_read_supported_commands(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
File:tests/bluetooth/tester/src/audio/btp_pbp.c
Line:97
You may want to run clang-format on this change:
- struct bt_le_adv_param param = BT_LE_ADV_PARAM_INIT(0, BT_GAP_ADV_FAST_INT_MIN_2,
- BT_GAP_ADV_FAST_INT_MAX_2, NULL);
- uint32_t gap_settings = BIT(BTP_GAP_SETTINGS_DISCOVERABLE) |
- BIT(BTP_GAP_SETTINGS_EXTENDED_ADVERTISING);
+ struct bt_le_adv_param param =
+ BT_LE_ADV_PARAM_INIT(0, BT_GAP_ADV_FAST_INT_MIN_2, BT_GAP_ADV_FAST_INT_MAX_2, NULL);
+ uint32_t gap_settings =
+ BIT(BTP_GAP_SETTINGS_DISCOVERABLE) | BIT(BTP_GAP_SETTINGS_EXTENDED_ADVERTISING);
uint32_t broadcast_id;
- NET_BUF_SIMPLE_DEFINE(ad_buf,
- BT_UUID_SIZE_16 + BT_AUDIO_BROADCAST_ID_SIZE);
+ NET_BUF_SIMPLE_DEFINE(ad_buf, BT_UUID_SIZE_16 + BT_AUDIO_BROADCAST_ID_SIZE);
File:tests/bluetooth/tester/src/audio/btp_pbp.c
Line:121
You may want to run clang-format on this change:
-static uint8_t pbp_set_public_broadcast_announcement(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_set_public_broadcast_announcement(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
File:tests/bluetooth/tester/src/audio/btp_pbp.c
Line:160
You may want to run clang-format on this change:
-static uint8_t pbp_set_broadcast_name(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_set_broadcast_name(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
File:tests/bluetooth/tester/src/audio/btp_pbp.c
Line:178
You may want to run clang-format on this change:
- BT_AUDIO_BROADCAST_NAME_LEN_MAX);
+ BT_AUDIO_BROADCAST_NAME_LEN_MAX);
}
return BTP_STATUS_VAL(err);
}
-static uint8_t pbp_broadcast_scan_start(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_broadcast_scan_start(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
File:tests/bluetooth/tester/src/audio/btp_pbp.c
Line:196
You may want to run clang-format on this change:
-static uint8_t pbp_broadcast_scan_stop(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_broadcast_scan_stop(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
File:tests/bluetooth/tester/src/audio/btp_pbp.c
Line:213
You may want to run clang-format on this change:
- {
- .opcode = BTP_PBP_READ_SUPPORTED_COMMANDS,
- .index = BTP_INDEX_NONE,
- .expect_len = 0,
- .func = pbp_read_supported_commands
- },
- {
- .opcode = BTP_PBP_SET_PUBLIC_BROADCAST_ANNOUNCEMENT,
- .expect_len = sizeof(struct btp_pbp_set_public_broadcast_announcement_cmd),
- .func = pbp_set_public_broadcast_announcement
- },
- {
- .opcode = BTP_PBP_SET_BROADCAST_NAME,
- .expect_len = sizeof(struct btp_pbp_set_broadcast_name_cmd),
- .func = pbp_set_broadcast_name
- },
- {
- .opcode = BTP_PBP_BROADCAST_SCAN_START,
- .expect_len = sizeof(struct btp_pbp_broadcast_scan_start_cmd),
- .func = pbp_broadcast_scan_start
- },
- {
- .opcode = BTP_PBP_BROADCAST_SCAN_STOP,
- .expect_len = sizeof(struct btp_pbp_broadcast_scan_stop_cmd),
- .func = pbp_broadcast_scan_stop
- }
-};
+ {.opcode = BTP_PBP_READ_SUPPORTED_COMMANDS,
+
|
Run Compliance Tests:
tests/bluetooth/tester/src/audio/btp/btp_pbp.h#L10
tests/bluetooth/tester/src/audio/btp/btp_pbp.h:10
-#define BTP_PBP_READ_SUPPORTED_COMMANDS 0x01
+#define BTP_PBP_READ_SUPPORTED_COMMANDS 0x01
|
Run Compliance Tests:
tests/bluetooth/tester/src/audio/btp_pbp.c#L65
tests/bluetooth/tester/src/audio/btp_pbp.c:65
- if ((info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) ||
- info->interval == 0) {
+ if ((info->adv_props & BT_GAP_ADV_PROP_CONNECTABLE) || info->interval == 0) {
|
Run Compliance Tests:
tests/bluetooth/tester/src/audio/btp_pbp.c#L97
tests/bluetooth/tester/src/audio/btp_pbp.c:97
-static uint8_t pbp_read_supported_commands(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_read_supported_commands(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
|
Run Compliance Tests:
tests/bluetooth/tester/src/audio/btp_pbp.c#L121
tests/bluetooth/tester/src/audio/btp_pbp.c:121
- struct bt_le_adv_param param = BT_LE_ADV_PARAM_INIT(0, BT_GAP_ADV_FAST_INT_MIN_2,
- BT_GAP_ADV_FAST_INT_MAX_2, NULL);
- uint32_t gap_settings = BIT(BTP_GAP_SETTINGS_DISCOVERABLE) |
- BIT(BTP_GAP_SETTINGS_EXTENDED_ADVERTISING);
+ struct bt_le_adv_param param =
+ BT_LE_ADV_PARAM_INIT(0, BT_GAP_ADV_FAST_INT_MIN_2, BT_GAP_ADV_FAST_INT_MAX_2, NULL);
+ uint32_t gap_settings =
+ BIT(BTP_GAP_SETTINGS_DISCOVERABLE) | BIT(BTP_GAP_SETTINGS_EXTENDED_ADVERTISING);
uint32_t broadcast_id;
- NET_BUF_SIMPLE_DEFINE(ad_buf,
- BT_UUID_SIZE_16 + BT_AUDIO_BROADCAST_ID_SIZE);
+ NET_BUF_SIMPLE_DEFINE(ad_buf, BT_UUID_SIZE_16 + BT_AUDIO_BROADCAST_ID_SIZE);
|
Run Compliance Tests:
tests/bluetooth/tester/src/audio/btp_pbp.c#L160
tests/bluetooth/tester/src/audio/btp_pbp.c:160
-static uint8_t pbp_set_public_broadcast_announcement(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_set_public_broadcast_announcement(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
|
Run Compliance Tests:
tests/bluetooth/tester/src/audio/btp_pbp.c#L178
tests/bluetooth/tester/src/audio/btp_pbp.c:178
-static uint8_t pbp_set_broadcast_name(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_set_broadcast_name(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
|
Run Compliance Tests:
tests/bluetooth/tester/src/audio/btp_pbp.c#L196
tests/bluetooth/tester/src/audio/btp_pbp.c:196
- BT_AUDIO_BROADCAST_NAME_LEN_MAX);
+ BT_AUDIO_BROADCAST_NAME_LEN_MAX);
}
return BTP_STATUS_VAL(err);
}
-static uint8_t pbp_broadcast_scan_start(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_broadcast_scan_start(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
|
Run Compliance Tests:
tests/bluetooth/tester/src/audio/btp_pbp.c#L213
tests/bluetooth/tester/src/audio/btp_pbp.c:213
-static uint8_t pbp_broadcast_scan_stop(const void *cmd, uint16_t cmd_len,
- void *rsp, uint16_t *rsp_len)
+static uint8_t pbp_broadcast_scan_stop(const void *cmd, uint16_t cmd_len, void *rsp,
+ uint16_t *rsp_len)
|
Run Compliance Tests:
tests/bluetooth/tester/src/audio/btp_pbp.c#L256
tests/bluetooth/tester/src/audio/btp_pbp.c:256
- {
- .opcode = BTP_PBP_READ_SUPPORTED_COMMANDS,
- .index = BTP_INDEX_NONE,
- .expect_len = 0,
- .func = pbp_read_supported_commands
- },
- {
- .opcode = BTP_PBP_SET_PUBLIC_BROADCAST_ANNOUNCEMENT,
- .expect_len = sizeof(struct btp_pbp_set_public_broadcast_announcement_cmd),
- .func = pbp_set_public_broadcast_announcement
- },
- {
- .opcode = BTP_PBP_SET_BROADCAST_NAME,
- .expect_len = sizeof(struct btp_pbp_set_broadcast_name_cmd),
- .func = pbp_set_broadcast_name
- },
- {
- .opcode = BTP_PBP_BROADCAST_SCAN_START,
- .expect_len = sizeof(struct btp_pbp_broadcast_scan_start_cmd),
- .func = pbp_broadcast_scan_start
- },
- {
- .opcode = BTP_PBP_BROADCAST_SCAN_STOP,
- .expect_len = sizeof(struct btp_pbp_broadcast_scan_stop_cmd),
- .func = pbp_broadcast_scan_stop
- }
-};
+ {.opcode = BTP_PBP_READ_SUPPORTED_COMMANDS,
+ .index = BTP_INDEX_NONE,
+ .expect_len = 0,
+ .func = pbp_read_supported_commands},
+ {.opcode = BTP_PBP_SET_PUBLIC_BROADCAST_ANNOUNCEMENT,
+ .expect_len = sizeof(struct btp_pbp_set_public_broadcast_announcement_cmd),
+ .func = pbp_set_public_broadcast_announcement},
+ {.opcode = BTP_PBP_SET_BROADCAST_NAME,
+ .expect_len = sizeof(struct btp_pbp_set_broadcast_name_cmd),
+ .func = pbp_set_broadcast_name},
+ {.opcode = BTP_PBP_BROADCAST_SCAN_START,
+ .expect_len = sizeof(struct btp_pbp_broadcast_scan_start_cmd),
+ .func = pbp_broadcast_scan_start},
+ {.opcode = BTP_PBP_BROADCAST_SCAN_STOP,
+ .expect_len = sizeof(struct btp_pbp_broadcast_scan_stop_cmd),
+ .func = pbp_broadcast_scan_stop}};
|
Loading