From 2a7bb97a3a22e9da7ccd0289f59cd13948a19e4c Mon Sep 17 00:00:00 2001 From: Matthias Ringwald <matthias@ringwald.ch> Date: Thu, 27 Sep 2018 12:50:29 +0200 Subject: [PATCH] avrcp_controller: trigger notification registration after response was received --- src/classic/avrcp_controller.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/classic/avrcp_controller.c b/src/classic/avrcp_controller.c index 63aae83a7..93858e22f 100644 --- a/src/classic/avrcp_controller.c +++ b/src/classic/avrcp_controller.c @@ -848,6 +848,11 @@ static void avrcp_handle_l2cap_data_packet_for_signaling_connection(avrcp_connec default: break; } + + // trigger pending notification reqistrations + if (connection->state == AVCTP_CONNECTION_OPENED && connection->notifications_to_register){ + avrcp_request_can_send_now(connection, connection->l2cap_signaling_cid); + } } static void avrcp_controller_handle_can_send_now(avrcp_connection_t * connection){