wifi_aggregator_set_profile_security_wep_key()

Configure the Wired Equivalent Privacy (WEP) key attribute of the Wi-Fi aggregator profile.

Synopsis:

#include <wifi/wifi_service.h>
 
WIFI_API wifi_result_t wifi_aggregator_set_profile_security_wep_key(wifi_aggregator_t *aggregator, const uint8_t *wep_key, int wep_key_byte_len)

Since:

BlackBerry 10.2.0

Arguments:

aggregator

The aggregator returned in wifi_aggregator_register().

wep_key

A WEP key of maximum length WIFI_MAX_WEP_KEY_LEN. Both ASCII and hexadecimal keys are supported.

wep_key_byte_len

The length of the WEP key in bytes. An ASCII WEP key needs to be either 5 or 13 ASCII characters. A hexadecimal WEP key needs to be either 10 or 26 hexadecimal characters.

Library:

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

Description:

This function configures the WEP key.

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 the security type is unmatched, WIFI_ERROR_INVALID_PARAMETERS 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