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:
27ce68a
)
Bluetooth: 6lowpan: Print errors during recv_pkt
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Mon, 3 Apr 2017 14:48:56 +0000
(17:48 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 12 Apr 2017 20:02:40 +0000
(22:02 +0200)
This makes should make it more clear why a packet is being dropped.
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/6lowpan.c
b/net/bluetooth/6lowpan.c
index 2063e96bc00607134f7eb0ade46029240f270df5..5b91e85cf1c69078975c8776a14d2594421dc303 100644
(file)
--- a/
net/bluetooth/6lowpan.c
+++ b/
net/bluetooth/6lowpan.c
@@
-337,6
+337,7
@@
static int recv_pkt(struct sk_buff *skb, struct net_device *dev,
ret = iphc_decompress(local_skb, dev, peer);
if (ret < 0) {
+ BT_DBG("iphc_decompress failed: %d", ret);
kfree_skb(local_skb);
goto drop;
}
@@
-356,6
+357,7
@@
static int recv_pkt(struct sk_buff *skb, struct net_device *dev,
consume_skb(local_skb);
consume_skb(skb);
} else {
+ BT_DBG("unknown packet type");
goto drop;
}