Bluetooth: SMP: Fix compilation with debugs enabled
This fix following compilation error if CONFIG_BLUETOOTH_DEBUG_SMP is defined: In file included from net/bluetooth/smp.c:44:0: net/bluetooth/smp.c: In function 'bt_smp_irk_matches': net/bluetooth/smp.c:681:31: error: 'val' undeclared (first use in this function) BT_DBG("IRK %s bdaddr %s", h(val, 16), bt_addr_str(addr)); Change-Id: I3350620f1f7dc929b949b4483178df66dde55198 Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
This commit is contained in:
parent
279f870bff
commit
ada9a6f66f
1 changed files with 1 additions and 1 deletions
|
@ -678,7 +678,7 @@ bool bt_smp_irk_matches(const uint8_t irk[16], const bt_addr_t *addr)
|
|||
uint8_t hash[3];
|
||||
int err;
|
||||
|
||||
BT_DBG("IRK %s bdaddr %s", h(val, 16), bt_addr_str(addr));
|
||||
BT_DBG("IRK %s bdaddr %s", h(irk, 16), bt_addr_str(addr));
|
||||
|
||||
err = smp_ah(irk, addr->val + 3, hash);
|
||||
if (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue