Message ID | 20220831214821.274797-2-brian.gix@intel.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Add mesh testing support | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/checkpatch | success | Checkpatch PASS |
tedd_an/gitlint | success | Gitlint PASS |
tedd_an/setupell | success | Setup ELL PASS |
tedd_an/buildprep | success | Build Prep PASS |
tedd_an/build | success | Build Configuration PASS |
tedd_an/makecheck | success | Make Check PASS |
tedd_an/makecheckvalgrind | success | Make Check PASS |
tedd_an/makedistcheck | success | Make Distcheck PASS |
tedd_an/build_extell | success | Build External ELL PASS |
tedd_an/build_extell_make | success | Build Make with External ELL PASS |
tedd_an/incremental_build | success | Pass |
tedd_an/scan_build | success | Pass |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=672980 ---Test result--- Test Summary: CheckPatch FAIL 2.87 seconds GitLint PASS 0.96 seconds Prep - Setup ELL PASS 31.96 seconds Build - Prep PASS 0.66 seconds Build - Configure PASS 10.04 seconds Build - Make PASS 981.55 seconds Make Check PASS 12.52 seconds Make Check w/Valgrind PASS 347.96 seconds Make Distcheck PASS 292.35 seconds Build w/ext ELL - Configure PASS 10.16 seconds Build w/ext ELL - Make PASS 101.38 seconds Incremental Build w/ patches PASS 238.65 seconds Scan Build PASS 784.56 seconds Details ############################## Test: CheckPatch - FAIL Desc: Run checkpatch.pl script with rule in .checkpatch.conf Output: [BlueZ,v3,2/2] tools: Add mesh-tester to test Kernel mesh support WARNING:LONG_LINE: line length of 81 exceeds 80 columns #362: FILE: tools/mesh-tester.c:252: + sizeof(set_exp_feat_param_mesh), set_exp_feat_param_mesh, WARNING:LONG_LINE: line length of 83 exceeds 80 columns #502: FILE: tools/mesh-tester.c:392: + sizeof(set_exp_feat_param_debug), set_exp_feat_param_debug, WARNING:LONG_LINE: line length of 81 exceeds 80 columns #592: FILE: tools/mesh-tester.c:482: + test_pre_setup, test_setup, func, NULL, \ WARNING:LONG_LINE: line length of 83 exceeds 80 columns #593: FILE: tools/mesh-tester.c:483: + test_post_teardown, timeout, user, free); \ WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line #728: FILE: tools/mesh-tester.c:618: +/* Read HCI commands in the expect_hci_list and add it to the queue +*/ ERROR:SWITCH_CASE_INDENT_LEVEL: switch and case should be at the same indent #1040: FILE: tools/mesh-tester.c:930: + switch (opcode) { + case BT_HCI_CMD_WRITE_SCAN_ENABLE: + case BT_HCI_CMD_LE_SET_ADV_ENABLE: + case BT_HCI_CMD_LE_SET_EXT_ADV_ENABLE: [...] + case BT_HCI_CMD_WRITE_SIMPLE_PAIRING_MODE: [...] + default: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line #1249: FILE: tools/mesh-tester.c:1139: + * for a callback. */ WARNING:LONG_LINE: line length of 81 exceeds 80 columns #1441: FILE: tools/mesh-tester.c:1331: + sizeof(set_exp_feat_param_mesh), set_exp_feat_param_mesh, /github/workspace/src/12961464.patch total: 1 errors, 7 warnings, 1474 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. /github/workspace/src/12961464.patch has style problems, please review. NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPDX_LICENSE_TAG SPLIT_STRING SSCANF_TO_KSTRTO NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. --- Regards, Linux Bluetooth
diff --git a/lib/mgmt.h b/lib/mgmt.h index 430bd0ef6..79b77d31a 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -760,6 +760,38 @@ struct mgmt_cp_add_adv_patterns_monitor_rssi { struct mgmt_adv_pattern patterns[0]; } __packed; +#define MGMT_OP_SET_MESH_RECEIVER 0x0057 +struct mgmt_cp_set_mesh { + uint8_t enable; + uint16_t window; + uint16_t period; + uint8_t num_ad_types; + uint8_t ad_types[]; +} __packed; + +#define MGMT_OP_MESH_READ_FEATURES 0x0058 +struct mgmt_rp_mesh_read_features { + uint16_t index; + uint8_t max_handles; + uint8_t used_handles; + uint8_t handles[]; +} __packed; + +#define MGMT_OP_MESH_SEND 0x0059 +struct mgmt_cp_mesh_send { + struct mgmt_addr_info addr; + uint64_t instant; + uint16_t delay; + uint8_t cnt; + uint8_t adv_data_len; + uint8_t adv_data[]; +} __packed; + +#define MGMT_OP_MESH_SEND_CANCEL 0x005A +struct mgmt_cp_mesh_send_cancel { + uint8_t handle; +} __packed; + #define MGMT_EV_CMD_COMPLETE 0x0001 struct mgmt_ev_cmd_complete { uint16_t opcode; @@ -1035,6 +1067,21 @@ struct mgmt_ev_adv_monitor_device_lost { struct mgmt_addr_info addr; } __packed; +#define MGMT_EV_MESH_DEVICE_FOUND 0x0031 +struct mgmt_ev_mesh_device_found { + struct mgmt_addr_info addr; + int8_t rssi; + uint64_t instant; + uint32_t flags; + uint16_t eir_len; + uint8_t eir[]; +} __packed; + +#define MGMT_EV_MESH_PACKET_CMPLT 0x0032 +struct mgmt_ev_mesh_pkt_cmplt { + uint8_t handle; +} __packed; + static const char *mgmt_op[] = { "<0x0000>", "Read Version",