Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290910
b: refs/heads/master
c: b7d05ba
h: refs/heads/master
v: v3
  • Loading branch information
Peter Hurley authored and Johan Hedberg committed Feb 13, 2012
1 parent fd97a50 commit 4d31c71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ef866adf9602238c2e83e951a72a1037d4179de
refs/heads/master: b7d05bad1c10a363b6b99f66ac1fa76b6892e618
4 changes: 4 additions & 0 deletions trunk/net/bluetooth/hci_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,10 @@ static int hci_conn_auth(struct hci_conn *conn, __u8 sec_level, __u8 auth_type)

if (!test_and_set_bit(HCI_CONN_AUTH_PEND, &conn->flags)) {
struct hci_cp_auth_requested cp;

/* encrypt must be pending if auth is also pending */
set_bit(HCI_CONN_ENCRYPT_PEND, &conn->flags);

cp.handle = cpu_to_le16(conn->handle);
hci_send_cmd(conn->hdev, HCI_OP_AUTH_REQUESTED,
sizeof(cp), &cp);
Expand Down

0 comments on commit 4d31c71

Please sign in to comment.