Turn the Wi-Fi radio power on while the device is in client STA operational mode.
WIFI_API int wifi_set_sta_power(bool on_off)
If true, the power will be turned on.
Library:libwifi (For the qcc command, use the -l wifi option to link against this library)
This function attempts to set the Wi-Fi radio power. When the device is in an operational mode other than client STA, this function fails, errno is set to EBUSY, and the Wi-Fi power remains unchanged.
When the function returns successfully in response to a power-on request the device will operate in the client STA mode.
This function does not provide a method to turn Wi-Fi power off.
WIFI_SUCCESS upon success, WIFI_FAILURE with errno set otherwise.
Last modified: 2014-05-14