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

◆ nrf_wifi_fmac_chg_vif_state()

enum nrf_wifi_status nrf_wifi_fmac_chg_vif_state ( void *  fmac_dev_ctx,
unsigned char  if_idx,
struct nrf_wifi_umac_chg_vif_state_info vif_info 
)

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

Change the state of a virtual interface.

Parameters
fmac_dev_ctxPointer to the UMAC IF context for a RPU WLAN device.
if_idxIndex of the interface whose state needs to be changed.
vif_infoState information to be changed for the interface.

This function is used to send a command to:

  • Instruct the RPU firmware to change the state of an interface identified by an index if_idx and parameters specified by vif_info.
  • The different states that can be configured are
    • NRF_WIFI_FMAC_IF_OP_STATE_DOWN
    • NRF_WIFI_FMAC_IF_OP_STATE_UP
Return values
NRF_WIFI_STATUS_SUCCESSOn success
NRF_WIFI_STATUS_FAILOn failure to execute command