summaryrefslogtreecommitdiffstats
path: root/src/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 7b3131ff..9c647f39 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1709,7 +1709,7 @@ static int l2raw_connect(const bdaddr_t *src, const bdaddr_t *dst,
goto failed;
}
- opt = L2CAP_LM_AUTH | L2CAP_LM_ENCRYPT;
+ opt = L2CAP_LM_AUTH | L2CAP_LM_ENCRYPT | L2CAP_LM_SECURE;
err = setsockopt(sk, SOL_L2CAP, L2CAP_LM, &opt, sizeof(opt));
if (err < 0) {