summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/bluetooth/hci_core.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index c821ee72c8fc..39f2026dc477 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -2309,6 +2309,14 @@ static bool hci_persistent_key(struct hci_dev *hdev, struct hci_conn *conn,
if (conn->remote_auth == 0x02 || conn->remote_auth == 0x03)
return true;
+#ifdef TIZEN_BT
+ /* In case of auth_type '0x01', it is authenticated by MITM.
+ * So store it.
+ */
+ if (key_type == HCI_LK_AUTH_COMBINATION_P192)
+ return true;
+#endif
+
/* If none of the above criteria match, then don't store the key
* persistently */
return false;