Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Set security level to MEDIUM for mcap instances created from HDP plugin
@ 2011-03-23 12:07 Santiago Carot-Nemesio
  2011-03-23 12:36 ` Elvis Pfützenreuter
  2011-03-23 13:11 ` Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Santiago Carot-Nemesio @ 2011-03-23 12:07 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Santiago Carot-Nemesio

Some health devices without IO capabilities can't connect to mcap
instances when security level is set to HIGH. This patch enables
above devices to connect to Health instances avoiding the MITM
problem.
---
 health/hdp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/health/hdp.c b/health/hdp.c
index d4a2a30..3c2dce1 100644
--- a/health/hdp.c
+++ b/health/hdp.c
@@ -1329,7 +1329,7 @@ static gboolean update_adapter(struct hdp_adapter *hdp_adapter)
 		goto update;
 
 	adapter_get_address(hdp_adapter->btd_adapter, &addr);
-	hdp_adapter->mi = mcap_create_instance(&addr, BT_IO_SEC_HIGH, 0, 0,
+	hdp_adapter->mi = mcap_create_instance(&addr, BT_IO_SEC_MEDIUM, 0, 0,
 					mcl_connected, mcl_reconnected,
 					mcl_disconnected, mcl_uncached,
 					NULL, /* CSP is not used by now */
-- 
1.7.4.1


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

end of thread, other threads:[~2011-03-23 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 12:07 [PATCH] Set security level to MEDIUM for mcap instances created from HDP plugin Santiago Carot-Nemesio
2011-03-23 12:36 ` Elvis Pfützenreuter
2011-03-23 13:11 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox