xiaoxiang781216 commented on code in PR #1308:
URL: 
https://github.com/apache/incubator-nuttx-apps/pull/1308#discussion_r962984576


##########
nshlib/nsh_netcmds.c:
##########
@@ -392,7 +393,7 @@ static int nsh_foreach_netdev(nsh_netdev_callback_t 
callback,
        */
 
       if (entry->d_type == DTYPE_FILE &&
-          strcmp(entry->d_name, "stat") != 0)
+          netlib_getmacaddr(entry->d_name, mac) >= 0)

Review Comment:
   but not all device has mac address



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to