|
@@ -1185,9 +1185,12 @@ static int hci_outgoing_auth_needed(struct hci_dev *hdev,
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
/* Only request authentication for SSP connections or non-SSP
|
|
/* Only request authentication for SSP connections or non-SSP
|
|
- * devices with sec_level HIGH or if MITM protection is requested */
|
|
|
|
|
|
+ * devices with sec_level MEDIUM or HIGH or if MITM protection
|
|
|
|
+ * is requested.
|
|
|
|
+ */
|
|
if (!hci_conn_ssp_enabled(conn) && !(conn->auth_type & 0x01) &&
|
|
if (!hci_conn_ssp_enabled(conn) && !(conn->auth_type & 0x01) &&
|
|
- conn->pending_sec_level != BT_SECURITY_HIGH)
|
|
|
|
|
|
+ conn->pending_sec_level != BT_SECURITY_HIGH &&
|
|
|
|
+ conn->pending_sec_level != BT_SECURITY_MEDIUM)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
return 1;
|
|
return 1;
|