Station (STA)
40
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
WLAN
Figure 4-1. Tx Output Power vs Tx Power Settings
Example:
_i16 Status;
_u8
StaPower = 3;
Status = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, SL_WLAN_GENERAL_PARAM_OPT_STA_TX_POWER,1,(_u8
*)& StaPower);
if
( Status )
{
/* error */
}
•
Set Country Code/Regulatory Domain
Sets the country code for STA mode. This setting enables scanning, and connection only to the AP
which operates on the chosen channel set. Possible values are US, EU, or JP. Other values are
considered an error. Each country code sets different channel ranges:
–
US: Channels 1–11
–
JP, EU: Channels 1–13
Example:
_i16 Status;
_u8
Str[] =
"US"
;
Status = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, SL_WLAN_GENERAL_PARAM_OPT_COUNTRY_CODE, 2, Str);
if
( Status )
{
/* error */
}