xiaoxiang781216 commented on code in PR #18031:
URL: https://github.com/apache/nuttx/pull/18031#discussion_r2710718664


##########
boards/boardctl.c:
##########
@@ -906,6 +906,21 @@ int boardctl(unsigned int cmd, uintptr_t arg)
         break;
 #endif
 
+#ifdef CONFIG_BOARDCTL_MACADDR
+      /* CMD:           BOARDIOC_MACADDR
+       * DESCRIPTION:   Get the network driver mac address.
+       * ARG:           The mac address.
+       * CONFIGURATION: CONFIG_BOARDCTL_MACADDR
+       * DEPENDENCIES:  Board logic must provide board_macaddr()
+       */
+
+      case BOARDIOC_MACADDR:
+        {
+          ret = board_macaddr(0, (FAR uint8_t *)arg);

Review Comment:
   let's change arg to struct, so the caller can pass both netdev name and 
macaddr



-- 
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