summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@codecoup.pl>2017-02-14 15:43:51 +0100
committerAnas Nashif <anas.nashif@intel.com>2017-02-28 07:07:51 -0500
commit8c4d0a5ee1bf6329d02d42a4c01e8e780c202758 (patch)
tree4e4cbabe2751ee59c09eae18e741cc3e89f7c0c4
parentdb533538d551e963629e5712eec0055e3b070221 (diff)
Bluetooth: SMP: Fix passkey entry for legacy pairing
This fix legacy pairing with passkey entry model when passkey is fisr entered on local side. Replying with error in that case is bogus as we should just wait for remote confirm. Change-Id: I75480802928fd29d21617aa9250f90df647eb9a2 Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
-rw-r--r--subsys/bluetooth/host/smp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/subsys/bluetooth/host/smp.c b/subsys/bluetooth/host/smp.c
index 3c4df1a72..2c8d6877d 100644
--- a/subsys/bluetooth/host/smp.c
+++ b/subsys/bluetooth/host/smp.c
@@ -2046,7 +2046,6 @@ static void legacy_passkey_entry(struct bt_smp *smp, unsigned int passkey)
memcpy(smp->tk, &passkey, sizeof(passkey));
if (!atomic_test_and_clear_bit(smp->flags, SMP_FLAG_CFM_DELAYED)) {
- smp_error(smp, BT_SMP_ERR_PASSKEY_ENTRY_FAILED);
return;
}