@@ -638,7 +638,7 @@ static gboolean l2cap_set(int sock, uint8_t src_type, int sec_level,
if (imtu || omtu || mode) {
gboolean ret;
- if (src_type == BDADDR_BREDR)
+ if (src_type == BDADDR_BREDR || mode)
ret = set_l2opts(sock, imtu, omtu, mode, err);
else
ret = set_le_imtu(sock, imtu, err);
@@ -70,7 +70,8 @@ typedef enum {
BT_IO_MODE_RETRANS,
BT_IO_MODE_FLOWCTL,
BT_IO_MODE_ERTM,
- BT_IO_MODE_STREAMING
+ BT_IO_MODE_STREAMING,
+ BT_IO_MODE_ECRED = 0x81
} BtIOMode;
typedef void (*BtIOConfirm)(GIOChannel *io, gpointer user_data);
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This adds BT_IO_MODE_ECRED which directly maps to L2CAP_MODE_ECRED. --- btio/btio.c | 2 +- btio/btio.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)