diff --git a/pw_bluetooth_proxy/acl_data_channel.cc b/pw_bluetooth_proxy/acl_data_channel.cc index bb578f05b7..882b4327af 100644 --- a/pw_bluetooth_proxy/acl_data_channel.cc +++ b/pw_bluetooth_proxy/acl_data_channel.cc @@ -183,6 +183,7 @@ uint16_t AclDataChannel::GetNumFreeLeAclPackets() const { bool AclDataChannel::SendAcl(H4PacketWithH4&& h4_packet) { credit_allocation_mutex_.lock(); if (proxy_pending_le_acl_packets_ == proxy_max_le_acl_packets_) { + PW_LOG_WARN("No ACL send credits available. So will not send."); credit_allocation_mutex_.unlock(); return false; } diff --git a/pw_bluetooth_proxy/proxy_host.cc b/pw_bluetooth_proxy/proxy_host.cc index 24b0eb2692..dd5f5995de 100644 --- a/pw_bluetooth_proxy/proxy_host.cc +++ b/pw_bluetooth_proxy/proxy_host.cc @@ -175,6 +175,7 @@ pw::Status ProxyHost::SendGattNotify(uint16_t connection_handle, acl_send_mutex_.lock(); std::optional> h4_buff = ReserveH4Buff(); if (!h4_buff) { + PW_LOG_WARN("No H4 buffers available. So will not send."); acl_send_mutex_.unlock(); return pw::Status::Unavailable(); } @@ -222,6 +223,7 @@ pw::Status ProxyHost::SendGattNotify(uint16_t connection_handle, // destructed, so its release function will clear the corresponding flag in // `h4_buff_occupied_`. if (!acl_data_channel_.SendAcl(std::move(h4_att_notify))) { + // SendAcl function will have logged reason for failure to send.. return pw::Status::Unavailable(); } return OkStatus();