| 1257 | } |
| 1258 | |
| 1259 | static int netdev_upper_ifdown(FAR struct net_driver_s *dev) |
| 1260 | { |
| 1261 | FAR struct netdev_upperhalf_s *upper = dev->d_private; |
| 1262 | |
| 1263 | switch (upper->lower->rxtype) |
| 1264 | { |
| 1265 | case NETDEV_RX_WORK: |
| 1266 | work_cancel_sync(upper->lower->priority, upper->work); |
| 1267 | break; |
| 1268 | case NETDEV_RX_THREAD: |
| 1269 | case NETDEV_RX_THREAD_RSS: |
| 1270 | netdev_upper_exit_thread(upper); |
| 1271 | break; |
| 1272 | } |
| 1273 | |
| 1274 | if (upper->lower->ops->ifdown) |
| 1275 | { |
| 1276 | return upper->lower->ops->ifdown(upper->lower); |
| 1277 | } |
| 1278 | |
| 1279 | return -ENOSYS; |
| 1280 | } |
| 1281 | |
| 1282 | #ifdef CONFIG_NET_MCASTGROUP |
| 1283 | static int netdev_upper_addmac(FAR struct net_driver_s *dev, |
nothing calls this directly
no test coverage detected