Go to file
Mariusz Skamra fcda155262 Bluetooth: SMP: Fix invalid return from smp_pairing_master
With this patch, Identity Information and Identity Address
Information are properly received. There was a bug when
returning too early from smp_pairing_master function
and not setting BT_SMP_CMD_IDENT_INFO bit in allowed_cmds.

bt: bt_smp_recv (0x0010f054): Received SMP code 0x06 len 17
bt: smp_pairing_encrypt (0x0010f054):
bt: bt_smp_recv (0x0010f054): Received SMP code 0x07 len 11
bt: smp_pairing_master (0x0010f054):
bt: bt_smp_recv (0x0010f054): Received SMP code 0x08 len 17
bt: bt_smp_recv: Unexpected SMP code 0x08
bt: bt_smp_recv (0x0010f054): Received SMP code 0x09 len 8
bt: bt_smp_recv: Unexpected SMP code 0x09

The return should be after distributing LTK, EDIV and Rand if
IdKey was not set.

bt: bt_smp_recv (0x0010effc): Received SMP code 0x06 len 17
bt: smp_pairing_encrypt (0x0010effc):
bt: bt_smp_recv (0x0010effc): Received SMP code 0x07 len 11
bt: smp_pairing_master (0x0010effc):
bt: bt_smp_recv (0x0010effc): Received SMP code 0x08 len 17
bt: smp_ident_info (0x0010effc):
bt: bt_smp_recv (0x0010effc): Received SMP code 0x09 len 8
bt: smp_ident_addr_info (0x0010effc):
bt: smp_ident_addr_info (0x0010effc): identity 88:63:DF:88:0E:83 (public)
bt: bt_smp_disconnected (0x0010effc): conn 0x0010badc handle 64

Change-Id: Ic98cf6fd6ad2f7e41c6cd506d39fc9a9571a491f
Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
2016-02-05 20:14:39 -05:00
arch Rename x86 platforms 2016-02-05 20:14:39 -05:00
doc DOC: Restructures the documentation in two parts. 2016-02-05 20:14:39 -05:00
drivers Rename x86 platforms 2016-02-05 20:14:39 -05:00
include Bluetooth: Fix doxygen documentation for bt_connect_le() 2016-02-05 20:14:39 -05:00
kernel Remove obsolete kernel references to BSP 2016-02-05 20:14:39 -05:00
lib/libc doxygen: add @brief and capitalize 2016-02-05 20:14:33 -05:00
misc doxygen: fix comments in printk.c 2016-02-05 20:14:39 -05:00
net Bluetooth: SMP: Fix invalid return from smp_pairing_master 2016-02-05 20:14:39 -05:00
samples Update nanokernel boot_time project 2016-02-05 20:14:39 -05:00
scripts sanity: Replace obsolete BSP_FLAG with PLATFORM_FLAG 2016-02-05 20:14:39 -05:00
shared/include/nanokernel/x86 doxygen: add @brief and capitalize 2016-02-05 20:14:33 -05:00
.gitattributes First commit 2015-04-10 16:44:37 -07:00
.gitignore git: Ignore cscope files 2016-02-05 20:14:27 -05:00
.mailmap First commit 2015-04-10 16:44:37 -07:00
Kconfig kconfig: Rename Zephyr OS -> Zephyr Kernel 2016-02-05 20:14:26 -05:00
Makefile Move platforms to new arch/<arch>/platforms directory 2016-02-05 20:14:39 -05:00
Makefile.inc Makefile.inc: fix indentation 2016-02-05 20:14:38 -05:00
zephyr-env.sh Rename Zephyr OS into Zephyr Kernel 2016-02-05 20:14:26 -05:00