From 9701a39380091df8cc01c88afd61dad26321f87f Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Wed, 22 Feb 2023 12:00:50 +0900 Subject: [PATCH] netutils/wiznet: Fix bug where ioctl of SIOCDENYINETSOCK failed Fix ioctl error to EPREM. The handler is missing the process to set the OK. --- netutils/wiznet/wiznet_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netutils/wiznet/wiznet_main.c b/netutils/wiznet/wiznet_main.c index 4a64c86fad..26cfc1580f 100644 --- a/netutils/wiznet/wiznet_main.c +++ b/netutils/wiznet/wiznet_main.c @@ -1716,6 +1716,9 @@ static int ioctl_request(int fd, FAR struct wiznet_s *priv, priv->usock_enable = TRUE; } + + ret = OK; + drvreq = false; break; default: