From f7459450c3cdb24423615e1957f296b479f89aee Mon Sep 17 00:00:00 2001 From: Santiago Carot-Nemesio Date: Wed, 23 Mar 2011 13:07:46 +0100 Subject: [PATCH] Fix security level for MCAP instances created from HDP plugin 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/health/hdp.c b/health/hdp.c index d4a2a30e7..3c2dce1e8 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 */ -- 2.47.3