nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_wifi_fmac_start_xmit()

enum nrf_wifi_status nrf_wifi_fmac_start_xmit ( void *  fmac_dev_ctx,
unsigned char  if_idx,
void *  netbuf 
)

#include <nrf_wifi/fw_if/umac_if/inc/default/fmac_api.h>

Transmit a frame to the RPU.

Parameters
fmac_dev_ctxPointer to the UMAC IF context for a RPU WLAN device.
if_idxIndex of the interface on which the frame is to be transmitted.
netbufPointer to the OS specific network buffer.

This function takes care of transmitting a frame to the RPU firmware. It does the following:

   - Queues the frames to a transmit queue.
   - Based on token availability, sends one or more frames to the RPU using
     the command for transmission.
   - The firmware sends an event once the command has
     been processed to indicate whether the frame(s) have been
     transmitted/aborted.
   - The driver can cleanup the frame buffers after receiving this event.
Return values
NRF_WIFI_STATUS_SUCCESSOn success
NRF_WIFI_STATUS_FAILOn failure to execute command