summaryrefslogtreecommitdiff
path: root/monitor/bt.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2019-07-31 14:47:40 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-02-03 13:26:39 -0800
commit91e49fbf01472e6c7d0f7ca4f1e21e1f9c316e9e (patch)
tree551a29928ab9effbb1a9b947f3621bd09f9b742f /monitor/bt.h
parentb123bb0848f449c68006aee1e52f468711ff2c03 (diff)
downloadbluez-91e49fbf01472e6c7d0f7ca4f1e21e1f9c316e9e.tar.gz
monitor: Add decoding for L2CAP Enhanced Credit Based PDUs
Enhanced Credit Based Flow Control Mode is used for L2CAP connection-oriented channels on LE and BR/EDR with flow control using a credit-based scheme for L2CAP data.
Diffstat (limited to 'monitor/bt.h')
-rw-r--r--monitor/bt.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/monitor/bt.h b/monitor/bt.h
index c2e6964ff..d989f5b94 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -3712,6 +3712,36 @@ struct bt_l2cap_pdu_le_flowctl_creds {
uint16_t credits;
} __attribute__ ((packed));
+#define BT_L2CAP_PDU_ECRED_CONN_REQ 0x17
+struct bt_l2cap_pdu_ecred_conn_req {
+ uint16_t psm;
+ uint16_t mtu;
+ uint16_t mps;
+ uint16_t credits;
+ uint16_t scid[0];
+} __attribute__ ((packed));
+
+#define BT_L2CAP_PDU_ECRED_CONN_RSP 0x18
+struct bt_l2cap_pdu_ecred_conn_rsp {
+ uint16_t mtu;
+ uint16_t mps;
+ uint16_t credits;
+ uint16_t result;
+ uint16_t dcid[0];
+} __attribute__ ((packed));
+
+#define BT_L2CAP_PDU_ECRED_RECONF_REQ 0x19
+struct bt_l2cap_pdu_ecred_reconf_req {
+ uint16_t mtu;
+ uint16_t mps;
+ uint16_t scid[0];
+} __attribute__ ((packed));
+
+#define BT_L2CAP_PDU_ECRED_RECONF_RSP 0x1a
+struct bt_l2cap_pdu_ecred_reconf_rsp {
+ uint16_t result;
+} __attribute__ ((packed));
+
struct bt_l2cap_hdr_connless {
uint16_t psm;
} __attribute__ ((packed));