Diff between c533bdb7048b777789b797673a0f133a3754e30f and 588bebc6bb4d405ad36bbf2ea5a62c9855c4f71a
Changed Files
| File | Additions | Deletions | Status |
| android/gatt.c | +2 | -2 | modified |
Full Patch
diff --git a/android/gatt.c b/android/gatt.c
index d63efc9..5505cd0 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -1430,8 +1430,8 @@ static int connect_le(struct gatt_device *dev)
DBG("Connection attempt to: %s", addr);
- /* TODO: If we are bonded then we should use higier sec level */
- sec_level = BT_IO_SEC_LOW;
+ sec_level = bt_device_is_bonded(&dev->bdaddr) ? BT_IO_SEC_MEDIUM :
+ BT_IO_SEC_LOW;
/*
* This connection will help us catch any PDUs that comes before