![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm4400w/rabbitcore-rcm4400w_product-manual_3115424081.webp)
User’s Manual
73
WIFI_COUNTRY_GET
This command returns country-specific information into the user-supplied buffer (or data
structure) area. Accordingly, you must ensure there is enough space in the buffer for the
entire data structure. Be sure the data pointer points to a buffer that is large enough to hold
sizeof(_wifi_country)
.
The
wifi_status
structure has the following definition.
typedef struct {
char id; // Country ID
char country[16]; // Country name
int first_channel; // First channel
int last_channel; // Last channel
unsigned int channel_mask; // Channel mask
int max_pwr_dBm; // Max power, dBm
int max_pwr_index; // Max Power index
_wifi_country;
WIFI_MODE
Sets whether the Wi-Fi device should attach to an infrastructure network (
WIFICONF_
INFRASTRUCT
), which is the most common configuration, or an ad-hoc network
(
WIFICONF_ADHOC
). Access points are used with infrastructure networks, and coordinates
communication among all the associated devices. No wireless access points are associated
with the ad-hoc mode. This allows devices (such as Rabbit-based devices and notebooks)
to communicate with each other directly as peer devices without an access point.
WIFI_OWNCHAN
This parameter specifies the channel the Wi-Fi device uses in your network when operat-
ing in the ad-hoc mode. Set this parameter to "0" in an infrastructure network to allow the
Wi-Fi driver to pick the channel automatically for the given SSID. For an ad-hoc network,
this channel must be set to "1" through "13". Use the
WIFI_COUNTRY_GET
command to
get the valid range of channels for the country where the device will be used.
NOTE:
Regional regulations may not allow some channels to be used.
WIFI_WEP_FLAG
The encryption flag can have one of three values—disabled (
WIFICONF_WEP_DISABLE
),
WEP encryption enabled (
WIFICONF_WEP_ENABLE
), or TKIP/WPA encryption enabled
(
WIFICONF_WEP_TKIP
). You can use either 40-bit (5-byte) or 104-bit (13-byte) keys for
WEP (Wired Equivalent Privacy).
WIFI_WEP_USEKEY
Indicates which key ("0"–"3") is the default transmission key. The setting may be left at
the "0" default. The setting of the WEP keys is described below.
Summary of Contents for RabbitCore RCM4400W
Page 1: ...RabbitCore RCM4400W C Programmable Wi Fi Core Module OEM User s Manual 019 0160 080131 F...
Page 6: ...RabbitCore RCM4400W...
Page 24: ...18 RabbitCore RCM4400W...
Page 32: ...24 RabbitCore RCM4400W...
Page 58: ...50 RabbitCore RCM4400W...
Page 102: ...94 RabbitCore RCM4400W...
Page 120: ...112 RabbitCore RCM4400W...
Page 124: ...116 RabbitCore RCM4400W...
Page 126: ......