summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Mikuda <simon.mikuda@streamunlimited.com>2023-03-28 07:26:19 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-03-28 13:49:35 -0700
commit54601cbcf283468ecb867d3db14ddbd1badbe858 (patch)
treed47b29e1c5e65cdf7b810c7f356104127357f2da /lib
parentcedace72c3f71d356fc1895787569c7412ee94b2 (diff)
downloadbluez-54601cbcf283468ecb867d3db14ddbd1badbe858.tar.gz
l2test: Fix setting mode for BR/EDR l2cap socket
BT_MODE_* enums are used only for socket SOL_BLUETOOTH, option BT_MODE Otherwise we should use L2CAP_MODE_* enums.
Diffstat (limited to 'lib')
-rw-r--r--lib/l2cap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/l2cap.h b/lib/l2cap.h
index 9197800df..62cc04b57 100644
--- a/lib/l2cap.h
+++ b/lib/l2cap.h
@@ -184,6 +184,8 @@ typedef struct {
#define L2CAP_MODE_FLOWCTL 0x02
#define L2CAP_MODE_ERTM 0x03
#define L2CAP_MODE_STREAMING 0x04
+#define L2CAP_MODE_LE_FLOWCTL 0x80
+#define L2CAP_MODE_ECRED 0x81
#define L2CAP_SERVTYPE_NOTRAFFIC 0x00
#define L2CAP_SERVTYPE_BESTEFFORT 0x01