13627105546 opened a new pull request, #3315: URL: https://github.com/apache/nuttx-apps/pull/3315
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary - Why : In some embedded scenarios, the Wi-Fi MAC address is stored in a specific location (e.g., a file like device.info , OTP, or NVM) rather than being generated from a unique ID or fixed at compile time. A mechanism is needed to allow netinit to retrieve this MAC address from the board logic. - What : This commit adds a new configuration option CONFIG_NETINIT_WIFIMAC . When enabled, netinit attempts to fetch the MAC address via boardctl(BOARDIOC_USER_MAC_WIFI, ...) (defined as BOARDIOC_USER + 3 ). This allows board-specific logic to provide the correct Wi-Fi MAC address during network initialization. ## Impact - Users : Users can now select CONFIG_NETINIT_WIFIMAC in Kconfig if their board supports providing a Wi-Fi MAC address via boardctl . - Build : Introduces CONFIG_NETINIT_WIFIMAC . No impact on existing builds unless this new option is enabled. - Hardware : Requires board-level support for BOARDIOC_USER_MAC_WIFI command in board_ioctl if this feature is enabled. - Compatibility : Backward compatible. Existing MAC address initialization methods ( UIDMAC , ETHERNET , etc.) remain unchanged. ## Testing - Verification : - Verified that the code compiles successfully with CONFIG_NETINIT_WIFIMAC enabled. - Verified that checkpatch.sh passes for the modified files. - Target : Verified on local hardware platform where boardctl is implemented to read MAC address from device storage. -- 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]
