From fc114ada8dbe6b28c1d0de21460ff1282242db6d Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Tue, 24 Jan 2012 10:57:22 -0300 Subject: [PATCH] btio: Remove the default security level from btio The default value of sec_level when setting *any* option using bt_io_set() was BT_SECURITY_MEDIUM. This was causing the security procedure being started in some situations that it should not. --- btio/btio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/btio/btio.c b/btio/btio.c index 77ddb1df..825907dc 100644 --- a/btio/btio.c +++ b/btio/btio.c @@ -695,7 +695,6 @@ static gboolean parse_set_opts(struct set_opts *opts, GError **err, /* Set defaults */ opts->defer = DEFAULT_DEFER_TIMEOUT; opts->master = -1; - opts->sec_level = BT_IO_SEC_MEDIUM; opts->mode = L2CAP_MODE_BASIC; opts->flushable = -1; opts->priority = 0;