Infineon Logo Wi-Fi Host Driver (WHD) Public API Reference Guide
 
WHD Network Interface API

General Description

Allows WHD to pass received data to the network stack, to send an ethernet frame to WHD, etc.

Data Structures

struct  whd_netif_funcs
 Contains functions which allows WHD to pass received data to the network stack, to send an ethernet frame to WHD, etc. More...
 

Functions

whd_result_t whd_network_send_ethernet_data (whd_interface_t ifp, whd_buffer_t buffer)
 To send an ethernet frame to WHD (called by the Network Stack) More...
 

Function Documentation

◆ whd_network_send_ethernet_data()

whd_result_t whd_network_send_ethernet_data ( whd_interface_t  ifp,
whd_buffer_t  buffer 
)

To send an ethernet frame to WHD (called by the Network Stack)

This function takes ethernet data from the network stack and queues it for transmission over the wireless network. The function can be called from any thread context as it is thread safe, however it must not be called from interrupt context since it might get blocked while waiting for a lock on the transmit queue.

This function returns immediately after the packet has been queued for transmit, NOT after it has been transmitted. Packet buffers passed to the WHD are released inside the WHD once they have been transmitted.

Parameters
ifpPointer to handle instance of whd interface
bufferHandle of the packet buffer to be sent.
Returns
WHD_SUCCESS or Error code