diff mbox series

[BlueZ,1/1] hci: Add LE Extended Advertising Report structure

Message ID AS8P189MB260298A86DD024F75EB934CCC6C4A@AS8P189MB2602.EURP189.PROD.OUTLOOK.COM
State New
Headers show
Series [BlueZ,1/1] hci: Add LE Extended Advertising Report structure | expand

Commit Message

technicaluserx Oct. 3, 2023, 2:17 p.m. UTC
---
 lib/hci.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Comments

bluez.test.bot@gmail.com Oct. 3, 2023, 3:36 p.m. UTC | #1
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=789619

---Test result---

Test Summary:
CheckPatch                    FAIL      0.62 seconds
GitLint                       PASS      0.26 seconds
BuildEll                      PASS      27.54 seconds
BluezMake                     PASS      780.40 seconds
MakeCheck                     PASS      11.58 seconds
MakeDistcheck                 PASS      160.03 seconds
CheckValgrind                 PASS      255.21 seconds
CheckSmatch                   PASS      351.24 seconds
bluezmakeextell               PASS      110.90 seconds
IncrementalBuild              PASS      682.85 seconds
ScanBuild                     PASS      1048.80 seconds

Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[BlueZ,1/1] hci: Add LE Extended Advertising Report structure
WARNING:NEW_TYPEDEFS: do not add new typedefs
#107: FILE: lib/hci.h:2168:
+typedef struct{

WARNING:PREFER_DEFINED_ATTRIBUTE_MACRO: Prefer __packed over __attribute__((packed))
#121: FILE: lib/hci.h:2182:
+} __attribute__ ((packed)) le_extended_advertising_info;

/github/workspace/src/src/13407699.patch total: 0 errors, 2 warnings, 24 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/src/13407699.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 mbox series

Patch

diff --git a/lib/hci.h b/lib/hci.h
index 50f385c1e..24466cb7a 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -2164,6 +2164,24 @@  typedef struct {
 } __attribute__ ((packed)) le_advertising_info;
 #define LE_ADVERTISING_INFO_SIZE 9
 
+#define EVT_LE_EXTENDED_ADVERTISING_REPORT 0x0D
+typedef struct{
+	uint16_t evt_type;
+	uint8_t bdaddr_type;
+	bdaddr_t bdaddr;
+	uint8_t primary_phy;
+	uint8_t secondary_phy;
+	uint8_t adv_sid;
+	int8_t tx_power;
+	int8_t rssi;
+	uint16_t periodic_adv_interval;
+	uint8_t direct_addr_type;
+	bdaddr_t direct_addr;
+	uint8_t length;
+	uint8_t data[];
+} __attribute__ ((packed)) le_extended_advertising_info;
+#define LE_EXTENDED_ADVERTISING_INFO_SIZE 24
+
 #define EVT_LE_CONN_UPDATE_COMPLETE	0x03
 typedef struct {
 	uint8_t		status;