net/netdev/ioctl: correct the argument length of ioctl MII/PHY
@@ -1635,6 +1635,18 @@ ssize_t net_ioctl_arglen(int cmd)
case SIOCGIFCOUNT:
case SIOCSIFFLAGS:
case SIOCGIFFLAGS:
+ case SIOCMIINOTIFY:
+ case SIOCGMIIPHY:
+ case SIOCGMIIREG:
+ case SIOCSMIIREG:
+ case SIOCGCANBITRATE:
+ case SIOCSCANBITRATE:
+ case SIOCACANEXTFILTER:
+ case SIOCDCANEXTFILTER:
+ case SIOCACANSTDFILTER:
+ case SIOCDCANSTDFILTER:
+ case SIOCGIFNAME:
+ case SIOCGIFINDEX:
return sizeof(struct ifreq);
case SIOCGLIFADDR:
@@ -1668,14 +1680,6 @@ ssize_t net_ioctl_arglen(int cmd)
case SIOCDELRT:
return sizeof(struct rtentry);
- case SIOCMIINOTIFY:
- return sizeof(struct mii_ioctl_notify_s);
-
- case SIOCGMIIPHY:
- case SIOCGMIIREG:
- case SIOCSMIIREG:
- return sizeof(struct mii_ioctl_data_s);
-
default:
#ifdef CONFIG_NETDEV_IOCTL
# ifdef CONFIG_NETDEV_WIRELESS_IOCTL
