Hello everyone,
I am running some test on our CC3000 chip regarding the security type of a given router.
In each tests, the router use is always the same and only its configuration is changed.
WPA2 works perfectly, I have however some issue with the WEP security type.
To be more precise, the problem comes when I play around with the Key Index on the router.
Indeed, when on the router, the key index used it the first one, I can add a profile like below and the connection is successful.
wlan_add_profile( WLAN_SEC_WEP, // security type
(unsigned char*)ssid, // SSID
strlen((char*)ssid), // SSID length
NULL, // BSSID
1, // Priority
strlen((char*)key), // KEY length
0, // KEY index
0,
(unsigned char*)key, // KEY
0);
However, the problem comes if I set on the router the key and index 2 for example. Therefore, if I change the "KEY index" parameter and set it to 1, the connection is not working. I tried by setting it to 2 as well, in case there was a problem of offset, but the problem is the same.
To summarize, everything works fine with WEP as long as the key index used is the first one. With any other key index, the connection fails.
Has any of you already had this issue in the past ? Is there another way of doing it ? Is there something that I am missing ?
Thank you for your help.