Skip to contentSkip to conversation

Set security level to MEDIUM for mcap instances created from HDP plugin

PATCH In review Santiago Carot-Nemesio 3 participants 3 messages Mar 23, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Set security level to MEDIUM 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 files changed, 1 insertions(+), 1 deletions(-)
health/hdp.c +1 -1
index d4a2a30..3c2dce1 100644
@@ -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 */
Signature · 1 line
1.7.4.1
#1 lore raw

Hi,

Quoted 23 lines · 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(-)
health/hdp.c +1 -1
index d4a2a30..3c2dce1 100644
@@ -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 */
Signature · 1 line
1.7.4.1

Tested here com Nonin 9650 oximeter, works perfectly.

#2 lore raw
In reply to Santiago Carot-Nemesio

Hi,

Quoted 7 lines · 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(-)

Pushed upstream. Thanks.

Johan