
Access Point
47
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
WLAN
if
( Status )
{
/* error */
}
•
Security Type
Set the SimpleLink Wi-Fi device AP network security mode configuration. Possible security types are
OPEN, WEP and WPA\WPA2. The default value is Open security.
Example:
_i16 Status;
_u8
val = SL_WLAN_SEC_TYPE_WPA_WPA2;
Status =
sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_SECURITY_TYPE, 1, (_u8 *)&val);
if
( Status )
{
/* error */
}
•
Password
The SimpleLink Wi-Fi device configured as secured AP includes a security password. This password is
used for all secured networks except OPEN. Setting the SimpleLink Wi-Fi device with a WEP security
includes a password length of 5 or 10 characters in HEX format, and 13 or 26 characters in ASCII
format. For the WPA \ WPA2 security type, set the password length from 8 to 64 characters. The
default value is not supplied, and when using a secured network the password must be set.
Example:
_i16 Status;
_u8
password[] = {
"123456789"
};
_u16
len = strlen(password);
Status = sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_PASSWORD, len, (_u8 *)password);
if
( Status )
{
/* error */
}
•
Maximum Stations Connected
The SimpleLink Wi-Fi device lets users configure the value of the maximum connected stations
allowed. The available range is from one to four stations. The default value is four stations.
Example:
_i16 Status;
_u8 max_ap_stations = 3;
Status = sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_MAX_STATIONS,
sizeof
(max_ap_stations), (_u8
*)&max_ap_stations);
if
( Status )
{
/* error */
}
•
Station Aging Time
The SimpleLink Wi-Fi device lets users set the value of the maximum time before a station is
considered inactive. After this time expires, a null data frame is sent to the station. If this frame is not
acknowledged and no other frames are received, the station is disassociated. The default value is 60
seconds.
Example:
_i16 Status;
_u16 max_ap_sta_aging = 50;
Status
= sl_WlanSet(SL_WLAN_CFG_AP_ID, SL_WLAN_AP_OPT_MAX_STA_AGING,
sizeof
(max_ap_sta_aging),
(_u8 *)&max_ap_sta_aging);