nuttx/net/netdev
zhanghongyu 5ce2955e62 net/netdev: correct the ioctl command validation logic
This patch fixes the validation order in netdev ioctl handlers for
Bluetooth, IEEE 802.15.4, and packet radio devices. The command type
should be validated before checking the argument pointer to return
the correct error code (-ENOTTY vs -EINVAL).

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-01-15 19:59:40 +08:00
..
CMakeLists.txt net/utils/net_lock.c: add api to lock conn and netdev 2025-12-29 09:42:18 +08:00
Kconfig
Make.defs net/utils/net_lock.c: add api to lock conn and netdev 2025-12-29 09:42:18 +08:00
netdev.h devif_poll: only call the corresponding xxx_poll when there is data to be sent 2026-01-02 00:04:16 +08:00
netdev_carrier.c
netdev_count.c net/netdev: separate netdev_list_lock from net_lock 2025-12-29 09:42:18 +08:00
netdev_default.c netdev:When running, proto stack can exchange packets with device 2026-01-06 16:04:03 +08:00
netdev_findbyaddr.c net/netdev: Fix best prefix in findby 2026-01-08 22:45:16 +08:00
netdev_findbyindex.c net/netdev: separate netdev_list_lock from net_lock 2025-12-29 09:42:18 +08:00
netdev_findbyname.c net/netdev: separate netdev_list_lock from net_lock 2025-12-29 09:42:18 +08:00
netdev_foreach.c netdev_foreach.c: add lock protection during the traversal process 2026-01-02 00:00:55 +08:00
netdev_ifconf.c
netdev_input.c
netdev_iob.c net/netdev: Add netdev_iob_replace_l2 for netdev to avoid misuse 2025-12-09 07:56:20 -03:00
netdev_ioctl.c net/netdev: correct the ioctl command validation logic 2026-01-15 19:59:40 +08:00
netdev_ipv6.c
netdev_lladdrsize.c
netdev_lock.c net/utils/net_lock.c: add api to lock conn and netdev 2025-12-29 09:42:18 +08:00
netdev_notify_recvcpu.c
netdev_register.c devif_poll: only call the corresponding xxx_poll when there is data to be sent 2026-01-02 00:04:16 +08:00
netdev_stats.c
netdev_txnotify.c devif_poll: only call the corresponding xxx_poll when there is data to be sent 2026-01-02 00:04:16 +08:00
netdev_unregister.c net/utils/net_lock.c: add api to lock conn and netdev 2025-12-29 09:42:18 +08:00
netdev_verify.c net/netdev: separate netdev_list_lock from net_lock 2025-12-29 09:42:18 +08:00
netdown_notifier.c net:modify check condition from IFF_UP to IFF_RUNNING in the sending process 2026-01-09 21:48:18 +08:00