All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix starting security procedures when not needed
@ 2011-05-09 23:49 Vinicius Costa Gomes
  2011-05-10 10:21 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 5+ messages in thread
From: Vinicius Costa Gomes @ 2011-05-09 23:49 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Vinicius Costa Gomes

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 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/btio/btio.c b/btio/btio.c
index a3cf38a..df028a6 100644
--- a/btio/btio.c
+++ b/btio/btio.c
@@ -659,7 +659,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;
 
-- 
1.7.4.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-11  4:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-09 23:49 [PATCH] Fix starting security procedures when not needed Vinicius Costa Gomes
2011-05-10 10:21 ` Luiz Augusto von Dentz
2011-05-10 14:56   ` Vinicius Costa Gomes
2011-05-10 16:29     ` Luiz Augusto von Dentz
2011-05-11  4:54       ` Johan Hedberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.