SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The SimpleLink Wi-Fi device supports all Wi-Fi security types, commonly known as AES, TKIP, and WEP. The personal security type and personal security key are set both in manual connection API or profiles connection API. Table 5-12 lists the supported security types.
Value | Description | Password Length | Supported Mode |
---|---|---|---|
SL_WLAN_SEC_TYPE_OPEN | No security | STA, AP | |
SL_WLAN_SEC_TYPE_WEP | WEP open security | 5 or 10 characters in HEX format
13 or 26 characters in ASCII format | STA, AP |
SL_WLAN_SEC_TYPE_WEP_SHARED | WEP shared security | 5 or 10 characters in HEX format
13 or 26 characters in ASCII format | STA |
SL_WLAN_SEC_TYPE_WPA_WPA2 | WPA \ PSK and WPA2 \ PSK security types, or a mixed mode of WPA \ WPA2 PSK security type (TKIP, AES, mixed mode) | 8 to 63 characters | STA, AP |
SL_WLAN_SEC_TYPE_WPA2_PLUS | Supports connection to networks with security WPA3, WPA2+PMF (Protected Management Frames) and WPA2 (CCMP only) | 8 to 63 characters | STA |
SL_WLAN_SEC_TYPE_WPA3 | Supports connection to WPA3 only networks | 8 to 63 characters | STA |
SL_WLAN_SEC_TYPE_WPA_PMK | Preprocessed PMK as key parameter | 32 bytes binary buffer | STA |
SL_WLAN_SEC_TYPE_WPS_PBC | WPS push-button security (for more information refer to the WPS section) | STA | |
SL_WLAN_SEC_TYPE_WPS_PIN | WPS pin code security (for more information refer to the WPS section) | STA | |
SL_WLAN_SEC_TYPE_WPA_ENT | Enterprise security (for more information refer to the enterprise security section) | STA | |
SL_WLAN_SEC_TYPE_P2P_PBC | Relevant for Wi-Fi Direct mode, push button security (for more information refer to the Wi-Fi Direct section) | Wi-Fi Direct | |
SL_WLAN_SEC_TYPE_P2P_PIN_KEYPAD | Relevant for Wi-Fi Direct mode, pin code keypad security (for more information refer to the Wi-Fi Direct section) | Wi-Fi Direct | |
SL_WLAN_SEC_TYPE_P2P_PIN_DISPLAY | Relevant for Wi-Fi Direct mode, pin code display security (for more information refer to the Wi-Fi Direct section) | Wi-Fi Direct |
An example of adding a WPA2 secured profile:
SlWlanSecParams_t SecParams;
_i16 Index;
SecParams.Type = SL_WLAN_SEC_TYPE_WPA_WPA2;
SecParams.Key = SEC_SSID_KEY;
SecParams.KeyLen = strlen(SEC_SSID_KEY);
Index = sl_WlanProfileAdd((_i8*)SEC_SSID_NAME, strlen(SEC_SSID_NAME), 0, &secParams, 0, 7, 0);