Part Number: CC3220
Hi,
I am trying to implement the WPA2 enterprise connection on our device which is using the cc3220.
When using WPA2 enterprise I get the event SL_WLAN_EVENT_DISCONNECT in the callback SimpleLinkWlanEventHandler with the error reason 154. I cannot find the error reason 154 in wlan.h.
More infos:
- I have put a dummy (correctly formated) certificate in sys/cert/ca.der
- I have tried with both the wlan profile and the direct connection with same result.
- The same thing works on our other product which is using cc3200 so the radius server and AP are working fine.
- The wpa2 personnal is working fine on the cc3220
My questions:
- What is the error reason 154?
- Is there something obviously wrong with my configuration below?
Here is the code snippet where I configure the connection:
SlWlanSecParams_t secParams; SlWlanSecParamsExt_t eapParams; secParams.Key = "thepassword"; secParams.KeyLen = strlen("thepassword"); secParams.Type = SL_WLAN_SEC_TYPE_WPA_ENT; eapParams.EapMethod = SL_WLAN_EAPMETHOD(SL_PEAP0, SL_MSCHAP SL_WLAN_CC31XX_DEFAULT_CIPHER, SL_WLAN_CC31XX_DEFAULT_CIPHER); eapParams.User = "user"; eapParams.UserLen = strlen((const char *) eapParams.User); eapParams.AnonUserLen = 0; _u8 param = 1; /* 1 means disable the server authentication */ ret = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID,SL_WLAN_GENERAL_PARAM_DISABLE_ENT_SERVER_AUTH,1,¶m); if( ret ) { ERROR_PRINT("Could not configure"); } ret = sl_WlanProfileAdd((const signed char*) wificreds->ssid, strlen(wificreds->ssid),forced_mac, &secParams ,&eapParams,7 ,0);