SWRU368C May 2018 – January 2021 CC3100 , CC3100MOD , CC3200 , CC3200MOD
When connecting to an enterprise network, three files are needed:
These three files must be programmed with the following names so the device will use them:
Establishing a connection:
sl_WlanConnect(char* pName, int NameLen, unsigned char *pMacAddr, SlSecParams_t* pSecParams, SlSecParamsExt_t* pSecExtParams)
sl_WlanProfileAdd(char* pName, int NameLen, unsigned char *pMacAddr, SlSecParams_t* pSecParams, SlSecParamsExt_t* pSecExtParams, unsigned long Priority, unsigned long Options)
The sl_WlanConnect and the sl_WlanProfileAdd commands are used for different types of Wi-Fi connection. The connect command is for a one-shot connection, and the add profile used when auto connect is on (see the add profile white papers). Use those commands with extra security parameters for the enterprise connection – SlSecParamsExt_t.
A short view of the first five parameters of those commands follows. Learn more of the extra parameters of the add profile command in its white paper.
typedef struct
{
unsigned char Type; - type should be SL_SEC_TYPE_WPA_ENT
char* Key; - a key password for the enterprise connection that
must have it. MSCHAP, FAST ETC.
unsigned char KeyLen;
}SlSecParams_t;
typedef struct
{
char* User; - the enterprise user name
unsigned char UserLen;
char* AnonUser; - the anonymous user name (optional) for two phase
enterprise connections.
unsigned char AnonUserLen;
unsigned char CertIndex; - not supported
unsigned long EapMethod; -
SL_ENT_EAP_METHOD_TLS
SL_ENT_EAP_METHOD_TTLS_TLS
SL_ENT_EAP_METHOD_TTLS_MSCHAPv2
SL_ENT_EAP_METHOD_TTLS_PSK
SL_ENT_EAP_METHOD_PEAP0_TLS
SL_ENT_EAP_METHOD_PEAP0_MSCHAPv2
SL_ENT_EAP_METHOD_PEAP0_PSK
SL_ENT_EAP_METHOD_PEAP1_TLS
SL_ENT_EAP_METHOD_PEAP1_MSCHAPv2
SL_ENT_EAP_METHOD_PEAP1_PSK
SL_ENT_EAP_METHOD_FAST_AUTH_PROVISIONING
SL_ENT_EAP_METHOD_FAST_UNAUTH_PROVISIONING
SL_ENT_EAP_METHOD_FAST_NO_PROVISIONING
}SlSecParamsExt_t;