![background image](http://html1.mh-extra.com/html/rabbit/rabbitcore-rcm4400w/rabbitcore-rcm4400w_product-manual_3115424077.webp)
User’s Manual
69
6.3.2 Configuring Dynamic C at Run Time
There is one basic function call used to configure the Wi-Fi settings.
wifi_ioctl
int wifi_ioctl(int iface, int cmd, char* data, int len);
DESCRIPTION
This function call is used to configure the Wi-Fi interface, including setting the SSID,
the mode, WEP keys, etc. It can also be used to get status information and to request a
Wi-Fi scan.
Note that the Wi-Fi interface must be down when you are using the following commands
that change the configuration —
WIFI_SSID
,
WIFI_MULTI_DOMAIN
,
WIFI_
COUNTRY_SET
,
WIFI_MODE
,
WIFI_OWNCHAN
, and
WIFI_WEP_FLAG
. The
wifi_ioctl()
function description in the
WIFI_WLN_API.LIB
library provides
sample code to demonstrate how to bring down the Wi-Fi interface to change these
configurations.
PARAMETERS
iface
specifies the Wi-Fi interface number for the RCM4400W (use
IF_WIFI0
or
IF_DEFAULT
)
The
cmd
,
data
, and
len
parameters are described in detail below. Each
cmd
(command)
has different requirements for the
data
and
len
parameters. Note that these
parameters
are strings in all cases, even for “numeric” parameters.
The Wi-Fi interface must
be down when you are using the shaded commands that change the configuration.
cmd
data
len
Description
WIFI_SSID
char*
0–32
Sets SSID string
WIFI_MULTI_
DOMAIN
char*
0
"0"—disable 802.11d country info capability
"1"—enable 802.11d country info capability
WIFI_COUNTRY_
SET
int*
0
0 through 9 to set channel range and power
limits for selected country (see Table 5)
WIFI_COUNTRY_
GET
_wifi_
country*
0
Data structure with country-specific
information
WIFI_MODE
char*
0
WIFICONF_INFRASTRUCT
or
WIFICONF_ADHOC
WIFI_OWNCHAN
char*
0
"0" through "13" decimal-coded string
WIFI_WEP_FLAG
char*
0
WIFICONF_WEP_DISABLE
,
WIFICONF_WEP_ENABLE
,
or
WIFICONF_WEP_TKIP
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: ......