Bluetooth: Add debug with currently set random address

This makes debugging easier when HCI monitor is not used.

Change-Id: I0f4480266fd745163f2fd789bedc3bf8f2a3ceb4
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2016-06-06 05:49:06 +02:00 committed by Johan Hedberg
commit ab9f70d867

View file

@ -389,6 +389,8 @@ static int set_random_address(const bt_addr_t *addr)
struct net_buf *buf;
int err;
BT_DBG("%s", bt_addr_str(addr));
/* Do nothing if we already have the right address */
if (!bt_addr_cmp(addr, &bt_dev.random_addr.a)) {
return 0;