diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-19 05:25:33 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-19 09:49:54 -0400 |
commit | cfbb2b5b91e2f89cbd3a2f90bf807192a227355d (patch) | |
tree | 60ebc737737cc4eece2f8c7848e0a27b71ea3c33 /net | |
parent | 12c269d7e30ab044849eb1ae0c8e4850582f3c7b (diff) |
Bluetooth: Add LE features to debugfs if available
For LE capable controllers at the special LE features page to the
debugfs list with all the other features pages.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hci_core.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 94d5342a4da6..384b9db16f69 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -65,13 +65,20 @@ static int features_show(struct seq_file *f, void *ptr) | |||
65 | 65 | ||
66 | hci_dev_lock(hdev); | 66 | hci_dev_lock(hdev); |
67 | for (p = 0; p < HCI_MAX_PAGES && p <= hdev->max_page; p++) { | 67 | for (p = 0; p < HCI_MAX_PAGES && p <= hdev->max_page; p++) { |
68 | seq_printf(f, "Page %u: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x " | 68 | seq_printf(f, "%2u: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x " |
69 | "0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n", p, | 69 | "0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n", p, |
70 | hdev->features[p][0], hdev->features[p][1], | 70 | hdev->features[p][0], hdev->features[p][1], |
71 | hdev->features[p][2], hdev->features[p][3], | 71 | hdev->features[p][2], hdev->features[p][3], |
72 | hdev->features[p][4], hdev->features[p][5], | 72 | hdev->features[p][4], hdev->features[p][5], |
73 | hdev->features[p][6], hdev->features[p][7]); | 73 | hdev->features[p][6], hdev->features[p][7]); |
74 | } | 74 | } |
75 | if (lmp_le_capable(hdev)) | ||
76 | seq_printf(f, "LE: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x " | ||
77 | "0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n", | ||
78 | hdev->le_features[0], hdev->le_features[1], | ||
79 | hdev->le_features[2], hdev->le_features[3], | ||
80 | hdev->le_features[4], hdev->le_features[5], | ||
81 | hdev->le_features[6], hdev->le_features[7]); | ||
75 | hci_dev_unlock(hdev); | 82 | hci_dev_unlock(hdev); |
76 | 83 | ||
77 | return 0; | 84 | return 0; |