qwf_wifi_SetWepKey()

Set the WEP key before creating or updating a Saved Network profile

Synopsis:

#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_SetWepKey(qwf_Context_t *pCtx,
                                      char *pKey);

Arguments:

pCtx
A pointer to the QWF service context created by qwf_Init()
pKey
A NULL-terminated string containing a key for WEP authentication. The key must be either 10 or 26 characters long.

Library:

qwf_interface

Description:

This function sets a key to be used for WEP authentication. The client application must call this function before calling qwf_wifi_CreateSavedNetwork() or qwf_wifi_UpdateSavedNetwork().

After the Saved Network profile is created or updated, the WEP key is reset to an empty string. At this point, the credentials are part of the persisted profile, and are used when connecting to the associated access point.

Returns:

WIFI_OK Successful result

WIFI_ERR_PARAM A pointer argument is NULL, or the key isn't 10 or 26 characters long