From 7b5212174affc3834d32b68b07370810f9592cb1 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 13 Jan 2009 17:55:54 +0100 Subject: Allow choosing of MITM for new pairing function --- test/l2test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/l2test.c b/test/l2test.c index babef00c..b760ddd8 100644 --- a/test/l2test.c +++ b/test/l2test.c @@ -861,7 +861,10 @@ static void do_pairing(char *svr) goto failed; } - opt = L2CAP_LM_SECURE; + if (secure) + opt = L2CAP_LM_SECURE; + else + opt = L2CAP_LM_ENCRYPT; if (setsockopt(sk, SOL_L2CAP, L2CAP_LM, &opt, sizeof(opt)) < 0) { perror("Can't set link mode"); -- cgit