A Wi-Fi® device requires a MAC address to communicate with another device. This address must be unique on the network.
Typically, blocks of addresses are purchased by a product vendor and a unique address is assigned to each unit. nRF70 Series devices support up to two Virtual Network Interface (VIF)s, each requiring a MAC address. These are usually allocated next to each other, but it is not a requirement. The mechanisms available for configuring MAC addresses are:
- Program into One Time Programmable (OTP) memory on the production line
- Configure at interface initialization through the NET_REQUEST_ETHERNET_SET_MAC_ADDRESS net_mgmt nRF Connect SDK Application Programming Interface (API) at runtime
The runtime mechanism can be used if the MAC address is stored elsewhere in the product or if a random MAC address is used. For the random MAC address scenario, no support is currently included in the Wi-Fi driver beyond exposing an API to configure at interface initialization.