Skip to contentSkip to conversation

Bluetooth: Add l2cap_chan_no_resume stub for A2MP

PATCH In review Marcel Holtmann 2 participants 2 messages Oct 15, 2013

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: Add l2cap_chan_no_resume stub for A2MP

The A2MP client for L2CAP channels needs to use l2cap_chan_no_resume empty stub function.

---
 include/net/bluetooth/l2cap.h | 4 ++++
 net/bluetooth/a2mp.c          | 1 +
 2 files changed, 5 insertions(+)
include/net/bluetooth/l2cap.h +4 -0
index 377db2a..3d922b9 100644
@@ -797,6 +797,10 @@ static inline void l2cap_chan_no_defer(struct l2cap_chan *chan)
 {
 }
 
+static inline void l2cap_chan_no_resume(struct l2cap_chan *chan)
+{
+}
+
 static inline void l2cap_chan_no_set_shutdown(struct l2cap_chan *chan)
 {
 }
net/bluetooth/a2mp.c +1 -0
index 74c1477..fe32a33 100644
@@ -710,6 +710,7 @@ static struct l2cap_ops a2mp_chan_ops = {
 	.teardown = l2cap_chan_no_teardown,
 	.ready = l2cap_chan_no_ready,
 	.defer = l2cap_chan_no_defer,
+	.resume = l2cap_chan_no_resume,
 	.set_shutdown = l2cap_chan_no_set_shutdown,
 	.get_sndtimeo = l2cap_chan_no_get_sndtimeo,
 };
Signature · 1 line
1.8.3.1
#1 lore raw

Hi Marcel,

2013-10-15 Marcel Holtmann <[email protected]>:

Quoted 8 lines

The A2MP client for L2CAP channels needs to use l2cap_chan_no_resume empty stub function.

---
 include/net/bluetooth/l2cap.h | 4 ++++
 net/bluetooth/a2mp.c          | 1 +
 2 files changed, 5 insertions(+)

Patch has been applied to bluetooth-next. Thanks.

Gustavo