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

NetX status request for ethernet driver failure #2

Open
ucayalifish opened this issue Dec 2, 2021 · 1 comment
Open

NetX status request for ethernet driver failure #2

ucayalifish opened this issue Dec 2, 2021 · 1 comment
Assignees

Comments

@ucayalifish
Copy link

_nx_driver_get_status in common/drivers/ethernet/nx_stm32_eth_driver.c does not set value pointed by driver_req_ptr -> nx_ip_driver_return_ptr thus caller consider request failed.

@ucayalifish
Copy link
Author

This patch actually fixes the issue for me: Middlewares/ST/netxduo/common/drivers/ethernet/nx_stm32_eth_driver.c
`static VOID _nx_driver_get_status(NX_IP_DRIVER *driver_req_ptr)
{

UINT status;

/* Call hardware specific get status function. */
status = _nx_driver_hardware_get_status(driver_req_ptr);

/* Determine if there was an error. */
if (status != NX_SUCCESS)
{

/* Indicate an unsuccessful request.  */
driver_req_ptr -> nx_ip_driver_status =  NX_DRIVER_ERROR;
*driver_req_ptr -> nx_ip_driver_return_ptr = NX_FALSE; // <<- added
}

else
{

/* Indicate the request was successful.   */
driver_req_ptr -> nx_ip_driver_status =  NX_SUCCESS;
*driver_req_ptr -> nx_ip_driver_return_ptr = NX_TRUE; // <<- added

}
}
`

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

No branches or pull requests

2 participants