From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> If port is bigger than 31 and stream mode is selected then use ERTM --- tools/test-server.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/test-server.c b/tools/test-server.c index 7db153e..07d1328 100644 --- a/tools/test-server.c +++ b/tools/test-server.c @@ -324,7 +324,7 @@ static guint bluetooth_listen(void) } if (option_packet || option_channel > 31) { - type = BT_IO_L2CAP; + type = option_packet ? BT_IO_L2CAP : BT_IO_L2ERTM; option = BT_IO_OPT_PSM; } else { type = BT_IO_RFCOMM; -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html