include/net/if.h: Fix some macro definitions overlooked in commit d105dc9b5e. Also corrects the name of a structure: mii_ioctl_notify_s vs mii_iotcl_notify_s.

This commit is contained in:
Gregory Nutt
2019-01-27 16:42:18 -06:00
parent 4b9abfa3c2
commit 732bef73a7
12 changed files with 17 additions and 18 deletions
+2 -2
View File
@@ -1077,7 +1077,7 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, int cmd,
dev = netdev_ifr_dev(req);
if (dev && dev->d_ioctl)
{
struct mii_iotcl_notify_s *notify = &req->ifr_ifru.ifru_mii_notify;
struct mii_ioctl_notify_s *notify = &req->ifr_ifru.ifru_mii_notify;
ret = dev->d_ioctl(dev, cmd, ((unsigned long)(uintptr_t)notify));
}
}
@@ -1540,7 +1540,7 @@ ssize_t net_ioctl_arglen(int cmd)
return sizeof(struct rtentry);
case SIOCMIINOTIFY:
return sizeof(struct mii_iotcl_notify_s);
return sizeof(struct mii_ioctl_notify_s);
case SIOCGMIIPHY:
case SIOCGMIIREG: