Other Parts Discussed in Thread: CC3220SF-LAUNCHXL
We are using the CC3120R device and have two possible ways to update the product firmware over the air. One uses WPA2_PSK with a SSID and a key and that works very well. The second is to use an enterprise connection, 802.1x with SSID, user name and password. The documentation details about using private keys and certificate's etc but we want to just use the user name and password, this is how the server has been setup.
The following code is used to setup and start the connection
sec_params.Type = SL_WLAN_SEC_TYPE_WPA_ENT;
sec_params.Key = (signed char*)system_get_ssid_key(index);
sec_params.KeyLen = system_get_ssid_keylen(index);
eap_params.User = (signed char*)system_get_ssid_username(index);
eap_params.UserLen = system_get_ssid_username_length(index);
eap_params.EapMethod = SL_WLAN_ENT_EAP_METHOD_PEAP0_MSCHAPv2;
status = sl_WlanConnect((const signed char *) system_get_ssid_name(index), system_get_ssid_namelen(index), 0, &sec_params, &eap_params);
but it always fails and reports name, password or certificate has caused the fail.
The question I have is can we use 802.1x with having any private keys and certificates in the CC3120?
If so, what should we be doing that we are not doing correctly.