You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/03/07 19:14:11 UTC
[incubator-nuttx-apps] branch master updated: netinit: Unregister
notification at the end in netinit_monitor
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new d96bc5a netinit: Unregister notification at the end in netinit_monitor
d96bc5a is described below
commit d96bc5a4fbb90754f5afececbdc97f3d5395076e
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Mar 8 01:16:43 2020 +0800
netinit: Unregister notification at the end in netinit_monitor
---
netutils/netinit/netinit.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/netutils/netinit/netinit.c b/netutils/netinit/netinit.c
index dec073b..1921655 100644
--- a/netutils/netinit/netinit.c
+++ b/netutils/netinit/netinit.c
@@ -760,7 +760,8 @@ static int netinit_monitor(void)
/* TODO: Stop the PHY notifications and remove the signal handler. */
errout_with_notification:
-# warning Missing logic
+ ifr.ifr_mii_notify_event.sigev_notify = SIGEV_NONE;
+ ioctl(sd, SIOCMIINOTIFY, (unsigned long)&ifr);
errout_with_sigaction:
sigaction(CONFIG_NETINIT_SIGNO, &oact, NULL);
errout_with_socket: