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

◆ nrf_wifi_check_mode_validity()

enum nrf_wifi_status nrf_wifi_check_mode_validity ( unsigned char  mode)

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

Check if a valid mode is being set.

Parameters
modeThe mode value attempted to be configured.

This function checks the mode value attempted to be configured is a valid mode as supported by the driver. If the mode is valid, the mode will be configured to the lower layers, else an error value will be flagged.

Return values
WIFI_NRF_STATUS_SUCCESSOn success
WIFI_NRF_STATUS_FAILOn failure