Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279391
b: refs/heads/master
c: 5fe57d9
h: refs/heads/master
i:
  279389: f0db339
  279387: ef427e3
  279383: d52c922
  279375: 73c2333
  279359: 725da82
v: v3
  • Loading branch information
Brian Gix authored and Gustavo F. Padovan committed Dec 22, 2011
1 parent b24fbb0 commit 95664ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 2b64d153a0cc9d2b60e47be013cde8490f16e0a5
refs/heads/master: 5fe57d9e9edb9182d1fa941b94902444c3174ccd
10 changes: 9 additions & 1 deletion trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>
#include <net/bluetooth/mgmt.h>
#include <net/bluetooth/smp.h>

#define MGMT_VERSION 0
#define MGMT_REVISION 1
Expand Down Expand Up @@ -1642,8 +1643,15 @@ static int user_pairing_resp(struct sock *sk, u16 index, bdaddr_t *bdaddr,
}

/* Continue with pairing via SMP */
err = smp_user_confirm_reply(conn, mgmt_op, passkey);

if (!err)
err = cmd_status(sk, index, mgmt_op,
MGMT_STATUS_SUCCESS);
else
err = cmd_status(sk, index, mgmt_op,
MGMT_STATUS_FAILED);

err = cmd_status(sk, index, mgmt_op, MGMT_STATUS_SUCCESS);
goto done;
}

Expand Down

0 comments on commit 95664ea

Please sign in to comment.