wifi_aggregator_set_profile_security_type()

Configure the security type of a Wi-Fi aggregator profile.

Synopsis:

#include <wifi/wifi_service.h>
 
WIFI_API wifi_result_t wifi_aggregator_set_profile_security_type(wifi_aggregator_t *aggregator, wifi_security_type_t security)

Since:

BlackBerry 10.2.0

Arguments:

aggregator

The aggregator returned in wifi_aggregator_register().

security

An attribute value defined in wifi_security_type_t.

Library:

libwifi (For the qcc command, use the -l wifi option to link against this library)

Description:

This function configures the security type attribute and removes the pre-configured security credentials for the profile. This attribute is mandatory for the configuration of the aggregator profile. An app must configure the security type by using this function before configuring any other security credentials.

If the existing aggregator profile corresponds to the currently connected network, WIFI_ERROR_AGGREGATOR_PROFILE_BUSY is returned and the profile is not changed.

If a security type is not supported, WIFI_ERROR_REQUEST_UNSUPPORTED is returned.

Returns:

A return code from wifi_result_t.

Last modified: 2014-05-14



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

comments powered by Disqus