Skip to contentSkip to conversation

Bluetooth: Add extra SMP_DBG statement for remote OOB data

PATCH New Marcel Holtmann 1 participant 1 message Mar 16, 2015

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: Add extra SMP_DBG statement for remote OOB data

Just for pure debugging purposes print the remote out-of-band data that has been received and is going to be used.

---
 net/bluetooth/smp.c | 2 ++
 1 file changed, 2 insertions(+)
net/bluetooth/smp.c +2 -0
index 4c423bb4b043..895cfc9bd413 100644
@@ -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 {
Signature · 1 line
2.1.0