To define a WEP key in an application wifi_config_dct.h you must:
- #define CLIENT_AP_SECURITY WICED_SECURITY_WEP_PSK
- #define CLIENT_AP_PASSPHRASE "x00x05""x01x02x03x04x05" // For a 40-bit key
"x00" is the key index (ranging from 0 - 3)
"x05" is the length of the key being either x05 or x0D (for 40- or 104-bit WEP)
"x01x02x03x04x05" is the value of the WEP key (40-bit in this case)
NOTE: You can only define a single key in the DCT and for most WEP configurations the default key is index 0.
I'm trying to use a WEP key with above description but it fails. I must be doing something wrong.
I'm using SDK3.0.0. Here ar my details:
#define CLIENT_AP_SSID "wiced_test"
#define CLIENT_AP_PASSPHRASE "x00x05xFBx48xE1x47x72"
Here is copy paste of the key from my AP: FB48E14772
AP WEP Authentication mode is set to: Automatic. The other option is "shared key".
The AP is Netgear WNDR3400v2
Please note that we need to use the escape character. This is how your string should look like:
#define CLIENT_AP_PASSPHRASE "\x00\x05\xFB\x48\xE1\x47\x72"