The existence of the network driver ioctl() method should depend on CONFIG_NETDEV_IOCTL rather than CONFIG_NETDEV_PHY_IOCTL. The former enables the method, the later enables a subset of possible driver IOCTLs. This change should be basically a no-operation. The affected ioctl methods only support those subset of driver IOCTLs selected by CONFIG_NETDEV_PHY_IOCTL and the network logic will tolerate a nul ioctl method.

This commit is contained in:
Gregory Nutt
2018-01-22 08:17:31 -06:00
parent 6ae6ecc958
commit a8b6be4aaf
26 changed files with 505 additions and 469 deletions
+1 -1
View File
@@ -2632,7 +2632,7 @@ int enc_initialize(FAR struct spi_dev_s *spi,
#endif
priv->dev.d_private = priv; /* Used to recover private state from dev */
/* Create a watchdog for timing polling for and timing of transmisstions */
/* Create a watchdog for timing polling for and timing of transmissions */
priv->txpoll = wd_create(); /* Create periodic poll timer */
priv->txtimeout = wd_create(); /* Create TX timeout timer */