You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/08/15 14:28:06 UTC
[incubator-nuttx-apps] 02/03: wapi: correct scan return value
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit a755cb72da1eba88529394d06671822806954cbf
Author: zhanghongyu <zh...@xiaomi.com>
AuthorDate: Fri Apr 8 19:34:21 2022 +0800
wapi: correct scan return value
Signed-off-by: zhanghongyu <zh...@xiaomi.com>
---
wireless/wapi/src/wireless.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/wireless/wapi/src/wireless.c b/wireless/wapi/src/wireless.c
index c4a61cf1b..ee6db4a6a 100644
--- a/wireless/wapi/src/wireless.c
+++ b/wireless/wapi/src/wireless.c
@@ -1256,14 +1256,14 @@ int wapi_scan_stat(int sock, FAR const char *ifname)
return 1;
}
- printf("err[%d]: %s\n", errno, strerror(errno));
- }
- else
- {
int errcode = errno;
WAPI_IOCTL_STRERROR(SIOCGIWSCAN, errcode);
ret = -errcode;
}
+ else
+ {
+ ret = 0;
+ }
return ret;
}