Diff between 28e71a1283c0778e2359d6b25f2d00fa7028b07e and e2705e6da4d6f448d5b3ae435b1459443bcd1177
Changed Files
| File | Additions | Deletions | Status |
| android/hidhost.c | +5 | -0 | modified |
Full Patch
diff --git a/android/hidhost.c b/android/hidhost.c
index 4b718c6..da5f818 100644
--- a/android/hidhost.c
+++ b/android/hidhost.c
@@ -802,6 +802,11 @@ static void hog_conn_cb(const bdaddr_t *addr, int err, void *attrib)
goto fail;
}
+ if (!bt_gatt_set_security(addr, BT_IO_SEC_MEDIUM)) {
+ error("Failed to set security level");
+ goto fail;
+ }
+
DBG("");
bt_hid_notify_state(dev, HAL_HIDHOST_STATE_CONNECTED);