Sets the hardware address of the specified network interface.
- Parameters
-
| netif_desc | Network interface descriptor. |
| hw_addr | Buffer containing the hardware address (for the FNET_NETIF_TYPE_ETHERNET and FNET_NETIF_TYPE_WIFI interface type, it contains the MAC address). |
| hw_addr_size | Size of the hardware address in the hw_addr (for FNET_NETIF_TYPE_ETHERNET and FNET_NETIF_TYPE_WIFI interface types, it equals 6). |
- Returns
- This function returns:
- See also
- fnet_netif_get_hw_addr()
This function sets the hardware address of the netif interface to the hw_addr value.
For FNET_NETIF_TYPE_ETHERNET and FNET_NETIF_TYPE_WIFI interface types, this hardware address is the MAC address.