Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134739
b: refs/heads/master
c: 96a3183
h: refs/heads/master
i:
  134737: c7d6720
  134735: e15031c
v: v3
  • Loading branch information
Marcel Holtmann committed Feb 27, 2009
1 parent e6345cc commit 1fa47c9
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 00ae4af91d8c5b6814e2bb3bfaaf743845f989eb
refs/heads/master: 96a3183322cba1a2846771b067c99b9d6f481263
10 changes: 4 additions & 6 deletions trunk/net/bluetooth/hci_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,13 @@ static int hci_conn_auth(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
{
BT_DBG("conn %p", conn);

if (sec_level > conn->sec_level) {
if (sec_level > conn->sec_level)
conn->sec_level = sec_level;
conn->auth_type = auth_type;
} else if (conn->link_mode & HCI_LM_AUTH)
else if (conn->link_mode & HCI_LM_AUTH)
return 1;

conn->auth_type = auth_type;

if (!test_and_set_bit(HCI_CONN_AUTH_PEND, &conn->pend)) {
struct hci_cp_auth_requested cp;
cp.handle = cpu_to_le16(conn->handle);
Expand All @@ -418,9 +419,6 @@ int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)
{
BT_DBG("conn %p", conn);

if (conn->auth_type == 0xff)
conn->auth_type = auth_type;

if (sec_level == BT_SECURITY_SDP)
return 1;

Expand Down

0 comments on commit 1fa47c9

Please sign in to comment.