nrfxlib API 0.1.0
|
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.
fmac_dev_ctx | Pointer to the UMAC IF context for a RPU WLAN device. |
if_idx | Index of the interface on which the frame is to be transmitted. |
netbuf | Pointer 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.
NRF_WIFI_STATUS_SUCCESS | On success |
NRF_WIFI_STATUS_FAIL | On failure to execute command |