Skip to content

nrf70: Fix ret code for xmit #93060

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

krish2718
Copy link
Collaborator

Fix return codes for xmit and also fix ret code docs.

Return proper error codes for xmit instead of generic -1.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
None of the drivers seem to return the number of bytes, they all return
0 for success, so, fix the docs.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Copy link

Copy link
Member

@jukkar jukkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, this seems to be the case. From the callers https://github.com/search?q=repo%3Azephyrproject-rtos%2Fzephyr%20net_l2_send&type=code it seems that at least ppp is using the ret value to update the statistics. Could you check the callers of l2 send that they work ok after this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants