All of lore.kernel.org
 help / color / mirror / Atom feed
From: technicaluserx <technicaluserx@outlook.com>
To: linux-bluetooth@vger.kernel.org
Cc: technicaluserx <technicaluserx@outlook.com>
Subject: [PATCH BlueZ 1/1] hci: Add LE Extended Advertising Report structure
Date: Tue,  3 Oct 2023 17:17:16 +0300	[thread overview]
Message-ID: <AS8P189MB260298A86DD024F75EB934CCC6C4A@AS8P189MB2602.EURP189.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20231003141716.23955-1-technicaluserx@outlook.com>

---
 lib/hci.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

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;
-- 
2.34.1


       reply	other threads:[~2023-10-03 14:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20231003141716.23955-1-technicaluserx@outlook.com>
2023-10-03 14:17 ` technicaluserx [this message]
2023-10-03 15:36   ` LE Extended Advertising Report structure bluez.test.bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AS8P189MB260298A86DD024F75EB934CCC6C4A@AS8P189MB2602.EURP189.PROD.OUTLOOK.COM \
    --to=technicaluserx@outlook.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.