Skip to content

Commit 2ce5fb5

Browse files
holtmannGustavo Padovan
authored andcommitted
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. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
1 parent 74e7574 commit 2ce5fb5

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎include/net/bluetooth/l2cap.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,10 @@ static inline void l2cap_chan_no_defer(struct l2cap_chan *chan)
797797
{
798798
}
799799

800+
static inline void l2cap_chan_no_resume(struct l2cap_chan *chan)
801+
{
802+
}
803+
800804
static inline void l2cap_chan_no_set_shutdown(struct l2cap_chan *chan)
801805
{
802806
}

‎net/bluetooth/a2mp.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,7 @@ static struct l2cap_ops a2mp_chan_ops = {
710710
.teardown = l2cap_chan_no_teardown,
711711
.ready = l2cap_chan_no_ready,
712712
.defer = l2cap_chan_no_defer,
713+
.resume = l2cap_chan_no_resume,
713714
.set_shutdown = l2cap_chan_no_set_shutdown,
714715
.get_sndtimeo = l2cap_chan_no_get_sndtimeo,
715716
};

0 commit comments

Comments
 (0)