Updated: October 28, 2024 |
Set the WEP key before creating or updating a Saved Network profile
#include <qwf/qwf_wifi.h>
qwf_wifi_Results_e qwf_wifi_SetWepKey(qwf_Context_t *pCtx, char *pKey)
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.
WIFI_OK Successful result
WIFI_ERR_INACTIVE The QWF Wi-Fi Manager service is inactive or not ready
WIFI_ERR_INT The QWF Wi-Fi Manager service couldn't issue the request or read the response
WIFI_ERR_PARAM A pointer argument is NULL, the key isn't 10 or 26 characters long, or the QWF Wi-Fi Manager context can't be retrieved