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

gnrc_netif: fix neighbor statistics with netdev_new_api #21002

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

Conversation

benpicco
Copy link
Contributor

Contribution description

These were only updated with in the old TX_COMPLETE events that no longer exist with the new API.

Testing procedure

tbd

Issues/PRs references

@github-actions github-actions bot added Area: network Area: Networking Area: sys Area: System labels Nov 18, 2024
@benpicco benpicco requested a review from maribu November 18, 2024 16:33
Comment on lines 34 to 38
typedef enum {
NETSTATS_NB_BUSY, /**< Failed due to medium busy */
NETSTATS_NB_SUCCESS = 0,/**< Successful transmission */
NETSTATS_NB_NOACK, /**< Failed due to no ack received */
NETSTATS_NB_SUCCESS, /**< Successful transmission */
NETSTATS_NB_BUSY, /**< Failed due to medium busy */
} netstats_nb_result_t;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
typedef enum {
NETSTATS_NB_BUSY, /**< Failed due to medium busy */
NETSTATS_NB_SUCCESS = 0,/**< Successful transmission */
NETSTATS_NB_NOACK, /**< Failed due to no ack received */
NETSTATS_NB_SUCCESS, /**< Successful transmission */
NETSTATS_NB_BUSY, /**< Failed due to medium busy */
} netstats_nb_result_t;
typedef enum {
NETSTATS_NB_SUCCESS = 0, /**< Successful transmission */
NETSTATS_NB_NOACK, /**< Failed due to no ack received */
NETSTATS_NB_BUSY, /**< Failed due to medium busy */
} netstats_nb_result_t;

The static tests don't like the missing space between , and /**...*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking Area: sys Area: System
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants