BL4S200 User’s Manual
155
•
Your Own Channel—
IFC_WIFI_CHANNEL
determines the channel on which to operate.
Define it to a
string,
not an integer.
The default is shown below.
#define IFC_WIFI_CHANNEL 0
The default
0
means that any valid channel may be used by the requested SSID. This
parameter is mandatory when creating an ad-hoc network. While it is optional for the
infrastructure mode, it is usually best left at the default
0
.
Note that there are restrictions on which channels may be used in certain countries.
These are provided in the
RabbitCore RCM5400 User’s Manual
for some countries.
•
Region/Country—
IFC_WIFI_REGION
sets the channel range and maximum power
limit to match the region selected. The
RabbitCore RCM5400 User’s Manual
lists the
regions that are supported and their corresponding macros.
The region selected
must
match the region where the BL5S220 will be used.
The default is shown below.
#define
IFC_
WIFI_REGION IFPARAM_WIFI_REGION_AMERICAS
•
Disable/enable encryption—
IFC_WIFI_ENCRYPTION
indicates whether or not encryp-
tion is enabled.
The default (encryption disabled) is shown below.
#define IFC_WIFI_ENCRYPTION IFPARAM_WIFI_ENCR_NONE
The following encryption options are available.
•
IFPARAM_WIFI_ENCR_NONE
— no encryption is used.
•
IFPARAM_WIFI_ENCR_ANY
— any type of encryption is used.
•
IFPARAM_WIFI_ENCR_WEP
— use WEP encryption. You will need to define at least
one WEP key (see below).
•
IFPARAM_WIFI_ENCR_TKIP
— use TKIP or WPA encryption. You will need to
define a passphrase or a key for TKIP encryption, as well as define the
WIFI_USE_WPA
macro (see below).
•
IFPARAM_WIFI_ENCR_CCMP
— use CCMP or WPA2 encryption. You will need to
define at least one WEP key (see below).
•
There are four encryption keys (
0
,
1
,
2
,
3
) associated with the
IFC_WIFI_WEP_KEYNUM
macro (default
0
). One or more of the following additional macros must be defined as
well. The default is for the keys to remain undefined.
IFC_WIFI_WEP_KEY0_BIN
IFC_WIFI_WEP_KEY1_BIN
IFC_WIFI_WEP_KEY2_BIN
IFC_WIFI_WEP_KEY3_BIN
IFC_WIFI_WEP_KEY0_HEXSTR
IFC_WIFI_WEP_KEY1_HEXSTR
IFC_WIFI_WEP_KEY2_HEXSTR
IFC_WIFI_WEP_KEY3_HEXSTR
electronic components distributor