[PATCH] Set l2cap mode always

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As ERTM can be the default mode with SOCK_STREAM we have to set
opts.mode always.
---
 test/l2test.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/test/l2test.c b/test/l2test.c
index 9413070..0bb46f3 100644
--- a/test/l2test.c
+++ b/test/l2test.c
@@ -228,8 +228,7 @@ static int do_connect(char *svr)
 	/* Set new options */
 	opts.omtu = omtu;
 	opts.imtu = imtu;
-	if (rfcmode > 0)
-		opts.mode = rfcmode;
+	opts.mode = rfcmode;
 
 	opts.fcs = fcs;
 	opts.txwin_size = txwin_size;
-- 
1.6.4.4

--
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

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux