projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b2ed60
)
Bluetooth: Show device address type for L2CAP debugfs entries
author
Marcel Holtmann
<
[email protected]
>
Wed, 14 Jan 2015 21:44:21 +0000
(13:44 -0800)
committer
Johan Hedberg
<
[email protected]
>
Thu, 15 Jan 2015 08:23:47 +0000
(10:23 +0200)
The devices address types are BR/EDR Public, LE Public and LE Random and
any of these three is valid for L2CAP connections. So show the correct
type in the debugfs list.
Signed-off-by: Marcel Holtmann <
[email protected]
>
Signed-off-by: Johan Hedberg <
[email protected]
>
net/bluetooth/l2cap_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap_core.c
b/net/bluetooth/l2cap_core.c
index 11029b212874c6bb70d9b1c53dc987459ece2bfe..4e7477d34eb84bbf72ae6ba7948b18a7be1a7a9b 100644
(file)
--- a/
net/bluetooth/l2cap_core.c
+++ b/
net/bluetooth/l2cap_core.c
@@
-7527,8
+7527,8
@@
static int l2cap_debugfs_show(struct seq_file *f, void *p)
read_lock(&chan_list_lock);
list_for_each_entry(c, &chan_list, global_l) {
- seq_printf(f, "%pMR
%pMR
%d %d 0x%4.4x 0x%4.4x %d %d %d %d\n",
- &c->src,
&c->dst
,
+ seq_printf(f, "%pMR
(%u) %pMR (%u)
%d %d 0x%4.4x 0x%4.4x %d %d %d %d\n",
+ &c->src,
c->src_type, &c->dst, c->dst_type
,
c->state, __le16_to_cpu(c->psm),
c->scid, c->dcid, c->imtu, c->omtu,
c->sec_level, c->mode);