wifi_set_sta_power()

Turn the Wi-Fi radio power on while the device is in client STA operational mode.

Synopsis:

#include <wifi/wifi_service.h>
 
WIFI_API int wifi_set_sta_power(bool on_off)

Since:

BlackBerry 10.0.0

Arguments:

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)

Description:

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.

Returns:

WIFI_SUCCESS upon success, WIFI_FAILURE with errno set otherwise.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus