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, it's better to check status



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to