Skip to content

Commit

Permalink
Bluetooth: Add extra SMP_DBG statement for remote OOB data
Browse files Browse the repository at this point in the history
Just for pure debugging purposes print the remote out-of-band data
that has been received and is going to be used.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Mar 16, 2015
1 parent e091526 commit bc07cd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bluetooth/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,8 @@ static void build_pairing_cmd(struct l2cap_conn *conn,
oob_flag = SMP_OOB_PRESENT;
memcpy(smp->rr, oob_data->rand256, 16);
memcpy(smp->pcnf, oob_data->hash256, 16);
SMP_DBG("OOB Remote Confirmation: %16phN", smp->pcnf);
SMP_DBG("OOB Remote Random: %16phN", smp->rr);
}

} else {
Expand Down

0 comments on commit bc07cd6

Please sign in to comment.