nRF WiFi
Loading...
Searching...
No Matches

◆ nrf_wifi_sys_fmac_set_key()

enum nrf_wifi_status nrf_wifi_sys_fmac_set_key ( void * fmac_dev_ctx,
unsigned char if_idx,
struct nrf_wifi_umac_key_info * key_info )

Set a key as a default for data or management traffic in the RPU security database.

Parameters
fmac_dev_ctxPointer to the UMAC IF context for a RPU WLAN device.
if_idxIndex of the interface on which the key is to be set.
key_infoKey specific information which needs to be passed to the RPU firmware.

This function is used to send a command to:

  • Instruct the RPU firmware to set a key as a default key in its security database.
  • The key is either for data or management traffic and is classified based on the flags element set in key_info parameter.
Return values
NRF_WIFI_STATUS_SUCCESSOn success
NRF_WIFI_STATUS_FAILOn failure to execute command