Bluetooth: Export current local RPA with identity information
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Feb 2014 04:39:23 +0000 (20:39 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Feb 2014 06:50:06 +0000 (08:50 +0200)
The identity information in debugfs currently do not include the
current in use local RPA. Since the RPA is now stored in the
controller information, include it in the debugfs as well.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c

index 9f1c3d7d1d745a1e71f024fa7a88e6dbdca4206f..4bb4f4e7bbbe938ea5cf0923b1a8bde23f74d69d 100644 (file)
@@ -596,7 +596,8 @@ static int identity_show(struct seq_file *f, void *p)
                addr_type = ADDR_LE_DEV_PUBLIC;
        }
 
-       seq_printf(f, "%pMR (type %u) %*phN\n", addr, addr_type, 16, hdev->irk);
+       seq_printf(f, "%pMR (type %u) %*phN %pMR\n", addr, addr_type,
+                  16, hdev->irk, &hdev->rpa);
 
        hci_dev_unlock(hdev);