Bluetooth: Add extra SMP_DBG statement for remote OOB data
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 16 Mar 2015 19:34:56 +0000 (12:34 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Mar 2015 19:36:21 +0000 (21:36 +0200)
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>
net/bluetooth/smp.c

index 2b5c13932b0a6237ec69554662d9463c42b5aecc..ebe69e91fb6c462d1203c369cbb942f9982335b6 100644 (file)
@@ -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 {