diff options
Diffstat (limited to 'test/l2test.c')
-rw-r--r-- | test/l2test.c | 5 |
1 files changed, 4 insertions, 1 deletions
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"); |