From 54601cbcf283468ecb867d3db14ddbd1badbe858 Mon Sep 17 00:00:00 2001 From: Simon Mikuda Date: Tue, 28 Mar 2023 07:26:19 +0200 Subject: 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. --- lib/l2cap.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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 -- cgit v1.2.1