Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144335
b: refs/heads/master
c: 3fdca1e
h: refs/heads/master
i:
  144333: 2930425
  144331: 8c447e0
  144327: ab3afc0
  144319: fd7fdeb
v: v3
  • Loading branch information
Marcel Holtmann committed Apr 28, 2009
1 parent 84411a4 commit 619feb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 052b30b0a8eec8db5b18ad49effdf2a9ba4c1e1a
refs/heads/master: 3fdca1e1370ffe89980927cdef0583bebcd8caaf
9 changes: 3 additions & 6 deletions trunk/net/bluetooth/hci_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,9 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
if (sec_level == BT_SECURITY_SDP)
return 1;

if (sec_level == BT_SECURITY_LOW) {
if (conn->ssp_mode > 0 && conn->hdev->ssp_mode > 0)
return hci_conn_auth(conn, sec_level, auth_type);
else
return 1;
}
if (sec_level == BT_SECURITY_LOW &&
(!conn->ssp_mode || !conn->hdev->ssp_mode))
return 1;

if (conn->link_mode & HCI_LM_ENCRYPT)
return hci_conn_auth(conn, sec_level, auth_type);
Expand Down

0 comments on commit 619feb6

Please sign in to comment.