Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report channel closed if not found #42

Merged
merged 2 commits into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions host/src/channel_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ impl<'d, const RXQ: usize> ChannelManager<'d, RXQ> {
return Ok(idx);
}
}
trace!("[l2cap][connected_channel_index] channel {} not found", cid);
Err(Error::NotFound)
trace!("[l2cap][connected_channel_index] channel {} closed", cid);
Err(Error::ChannelClosed)
}

async fn receive_pdu<T: Controller>(
Expand Down Expand Up @@ -625,8 +625,8 @@ impl<'d, const RXQ: usize> ChannelManager<'d, RXQ> {
_ => {}
}
}
trace!("[l2cap][connected_channel_params] channel {} not found", cid);
Err(Error::NotFound)
trace!("[l2cap][connected_channel_params] channel {} closed", cid);
Err(Error::ChannelClosed)
}

// Check the current state of flow control and send flow indications if
Expand Down