mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 17:03:29 +00:00
Fix two latent defects in the W5500 Ethernet driver: 1. NETDEV_RXERRORS() references non-existent variables (line 1351): In w5500_receive(), the error path uses &priv->dev but the function parameter is named self and the device field is w_dev. This compiles only because NETDEV_RXERRORS() expands to nothing without CONFIG_NETDEV_STATISTICS; enabling statistics breaks the build. 2. d_private set to the device array instead of the instance (line 2069): In w5500_initialize(), d_private was set to g_w5500 (the global array) instead of self (the current instance). This is harmless for device 0 (g_w5500 == &g_w5500[0]) but wrong for any devno > 0 — every callback that recovers the driver state via dev->d_private would operate on device 0's state. Fixes #19306 Signed-off-by: hanzhijian <hanzhijian@zepp.com> Author: hanzhijian <hanzhijian@zepp.com> |
||
|---|---|---|
| .. | ||
| oa_tc6 | ||
| CMakeLists.txt | ||
| dm90x0.c | ||
| e1000.c | ||
| e1000.h | ||
| enc28j60.c | ||
| enc28j60.h | ||
| encx24j600.c | ||
| encx24j600.h | ||
| ftmac100.c | ||
| igb.c | ||
| igb.h | ||
| igc.c | ||
| igc.h | ||
| Kconfig | ||
| ksz9477.c | ||
| ksz9477_i2c.c | ||
| ksz9477_reg.h | ||
| lan91c111.c | ||
| lan91c111.h | ||
| lan9250.c | ||
| lan9250.h | ||
| loopback.c | ||
| Make.defs | ||
| mdio.c | ||
| netdev_upperhalf.c | ||
| phy_notify.c | ||
| rpmsgdrv.c | ||
| skeleton.c | ||
| slip.c | ||
| telnet.c | ||
| tun.c | ||
| vlan.c | ||
| w5500.c | ||
| wifi_sim.c | ||