Synchronous function to transmit an Ethernet packet. The implementation of this packet is left to the application developer. The Ethernet packet composition is left to the application developer.
◆ m2m_wifi_send_ethernet_pkt()
- Parameters
-
[in] | pu8Packet | Pointer to a buffer holding the whole Ethernet frame at an offset of M2M_ETHERNET_HDR_OFFSET + M2M_ETH_PAD_SIZE bytes. This buffer has to be aligned appropriately for DMA operations according to the host's constraints (Word Aligned, cache line alignedナ etc) |
[in] | u16PacketSize | The size of the whole bytes in packet. |
[in] | u8IfcId | The interface selected to send Ethernet packet (AP_INTERFACE, STATION_INTERFACE OR P2P_INTERFACE) |
- Note
- Packets are the user's responsibility.
- Returns
- The function returns M2M_SUCCESS for successful operations and a negative value otherwise.