zkkkk12 commented on code in PR #21485:
URL: https://github.com/apache/nuttx/pull/21485#discussion_r4509278577
##########
drivers/net/netdev_upperhalf.c:
##########
@@ -1385,6 +1389,24 @@ static int netdev_upper_ioctl(FAR struct net_driver_s
*dev, int cmd,
FAR struct netdev_lowerhalf_s *lower = upper->lower;
int ret = -ENOTTY;
+#ifdef CONFIG_NET_PHYLIB
+ if (lower->phydev != NULL)
+ {
+ ret = phy_ioctl(lower->phydev, cmd, arg);
+ if (ret != -ENOTTY)
+ {
+ return ret;
+ }
+ }
+#endif
+
+#ifdef CONFIG_NETDEV_ETHTOOL_IOCTL
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]