46
802.11b (Wi-Fi) Add-On Kits
These default Wi-Fi parameters are set up for the
TCPCONFIG
macros.
•
Infrastructure Mode—
#define _WIFI_MODE WIFICONF_INFRASTRUCT
•
No Access Point SSID—
#define _WIFI_SSID ""
•
Your Own SSID is
RabbitTest
—
#define _WIFI_OWNSSID "RabbitTest"
•
Your Own Channel is 10—
#define _WIFI_OWNCHANNEL "10"
Note that there are restrictions on which channels may be used in certain countries.
These are provided in Table A-1.
•
Encryption is disabled—
#define _WIFI_WEP_FLAG WIFICONF_WEP_DISABLE
•
The following four encryption keys are provided. You will have to modify them
according to the encryption keys in effect for the Wi-Fi network you wish to access.
#define _WIFI_KEY0 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x23, 0x45, 0x67, 0x89
#define _WIFI_KEY1 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x23, 0x45, 0x67, 0x89
#define _WIFI_KEY2 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x23, 0x45, 0x67, 0x89
#define _WIFI_KEY3 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x23, 0x45, 0x67, 0x89
•
Encryption key 0 is selected if encryption is enabled—
#define _WIFI_USEKEY "0"
•
Authentication algorithm enables both open-system authentication and shared-key
authentication—
#define _WIFI_AUTH_MODE WIFICONF_AUTH_ALL
Macros for alternative Wi-Fi configurations are provided later in this chapter, and may be
used to change the above default macros or configurations. Alternatively, you may add
your own
TCPCONFIG
macro based on these settings as explained in the
TCP/IP User’s
Manual
. Save the library (
File > Save
) once you have made your configuration settings
in the Dynamic C
TCP_CONFIG.LIB
library.
The
CFIOINTERP.LIB
library supports the
CFPRISMINTERP.LIB
library with I/O func-
tions for the Wi-Fi CompactFlash card, and has no function calls that need to be accessed in
a typical customer application.
5.1.2 Function Call
There is one basic function call in the
CFPRISMINTERP.LIB
library.
This function call processes standard Wi-Fi interface configuration and control commands.
PARAMETERS
iface
specifies the interface number for the Interposer Board (use
IF_WIFI0
)
wifi_ioctl(int iface, int cmd, char* data, int len);
Summary of Contents for RCM3000
Page 8: ...4 802 11b Wi Fi Add On Kits ...
Page 28: ...24 802 11b Wi Fi Add On Kits ...
Page 56: ...52 802 11b Wi Fi Add On Kits ...
Page 60: ...56 802 11b Wi Fi Add On Kits ...
Page 68: ...64 802 11b Wi Fi Add On Kits ...
Page 78: ...74 802 11b Wi Fi Add On Kits ...
Page 80: ...76 802 11b Wi Fi Add On Kits ...
Page 82: ...78 RabbitCore RCM3800 ...
Page 86: ......