mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user