FreeBSD Bugzilla – Attachment 215323 Details for
Bug 247050
Add Bluetooth LE events
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add LE events
le_events.diff (text/plain), 2.18 KB, created by
Marc Veldman
on 2020-06-07 15:28:53 UTC
(
hide
)
Description:
Patch to add LE events
Filename:
MIME Type:
Creator:
Marc Veldman
Created:
2020-06-07 15:28:53 UTC
Size:
2.18 KB
patch
obsolete
>Index: sys/netgraph/bluetooth/include/ng_hci.h >=================================================================== >--- sys/netgraph/bluetooth/include/ng_hci.h (revision 361852) >+++ sys/netgraph/bluetooth/include/ng_hci.h (working copy) >@@ -1992,12 +1992,66 @@ > u_int16_t conn_latency; > u_int16_t supervision_timeout; > }__attribute__((packed)) ng_hci_connection_update_complete_ep; >+ > #define NG_HCI_LEEV_READ_REMOTE_FEATURES_COMPL 0x04 >-//TBD >+typedef struct { >+ u_int8_t status; >+ u_int16_t connection_handle; >+ u_int8_t features[NG_HCI_FEATURES_SIZE]; >+}__attribute__((packed)) ng_hci_le_read_remote_features_ep; >+ > #define NG_HCI_LEEV_LONG_TERM_KEY_REQUEST 0x05 >-//TBD >+typedef struct { >+ u_int16_t connection_handle; >+ u_int64_t random_number; >+ u_int16_t encrypted_diversifier; >+}__attribute__((packed)) ng_hci_le_long_term_key_request_ep; > >+#define NG_HCI_LEEV_REMOTE_CONN_PARAM_REQUEST 0x06 >+typedef struct { >+ u_int16_t connection_handle; >+ u_int16_t interval_min; >+ u_int16_t interval_max; >+ u_int16_t latency; >+ u_int16_t timeout; >+}__attribute__((packed)) ng_hci_le_remote_conn_param_ep; > >+#define NG_HCI_LEEV_DATA_LENGTH_CHANGE 0x07 >+typedef struct { >+ u_int16_t connection_handle; >+ u_int16_t min_tx_octets; >+ u_int16_t max_tx_time; >+ u_int16_t max_rx_octets; >+ u_int16_t max_rx_time; >+}__attribute__((packed)) ng_hci_le_data_length_change_ep; >+ >+#define NG_HCI_LEEV_READ_LOCAL_P256_PK_COMPL 0x08 >+typedef struct { >+ u_int8_t status; >+ u_int8_t local_p256_pk[64]; >+}__attribute__((packed)) ng_hci_le_read_local_p256_pk_compl_ep; >+ >+#define NG_HCI_LEEV_GEN_DHKEY_COMPL 0x09 >+typedef struct { >+ u_int8_t status; >+ u_int8_t dh_key[32]; >+}__attribute__((packed)) ng_hci_le_gen_dhkey_compl_ep; >+ >+#define NG_HCI_LEEV_ENH_CONN_COMPL 0x0a >+typedef struct { >+ u_int8_t status; >+ u_int16_t connection_handle; >+ u_int8_t role; >+ u_int8_t peer_addr_type; >+ bdaddr_t peer_addr; >+ bdaddr_t local_res_private_addr; >+ bdaddr_t peer_res_private_addr; >+ u_int16_t conn_interval; >+ u_int16_t conn_latency; >+ u_int16_t supervision_timeout; >+ u_int8_t master_clock_accuracy; >+}__attribute__((packed)) ng_hci_le_gen_dhkey_compl_ep; >+ > #define NG_HCI_EVENT_BT_LOGO 0xfe > > #define NG_HCI_EVENT_VENDOR 0xff
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247050
:
215323
|
215351