diff options
author | Simon Mikuda <simon.mikuda@streamunlimited.com> | 2023-03-28 07:26:19 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-03-28 13:49:35 -0700 |
commit | 54601cbcf283468ecb867d3db14ddbd1badbe858 (patch) | |
tree | d47b29e1c5e65cdf7b810c7f356104127357f2da /lib | |
parent | cedace72c3f71d356fc1895787569c7412ee94b2 (diff) | |
download | bluez-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.h | 2 |
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 |