![]() |
nRF WiFi
|
| enum nrf_wifi_status nrf_wifi_check_mode_validity | ( | unsigned char | mode | ) |
Check if a valid mode is being set.
| mode | The 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.
| NRF_WIFI_STATUS_SUCCESS | On success |
| NRF_WIFI_STATUS_FAIL | On failure |