48
802.11b (Wi-Fi) Add-On Kits
You would use each command macro in its own
wifi_ioctl()
function call. For exam-
ple, to name the “rabbit” access point and set a transmit rate of 11 Mbits/s, you would have
these two lines of code in your program.
int wifi_ioctl(IF_WIFI0, WIFI_SSID, "rabbit", 0);
int wifi_ioctl(IF_WIFI0, WIFI_TX_RATE, WIFICONF_RATE_11MBPS, 0);
Let’s look at the individual
wifi_ioctl()
commands and their macro options.
WIFI_SSID
An SSID (service set identifier) names a specific wireless LAN or network (WLAN). All
devices on a single WLAN must share a common SSID. Set this value to your WLAN’s
SSID, or leave it blank to allow the Rabbit-based device to select a WLAN automatically.
Generally, it is best to explicitly set the SSID so that the device does not join a WLAN that
you were not expecting it to join.
WIFI_MODE
Set to infrastructure mode (
WIFICONF_INFRASTRUCT
), which is the most common con-
figuration, or ad-hoc mode (
WIFICONF_ADHOC
). Access points are used with the infra-
structure mode. 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 without an access point.
WIFI_OWNSSID
Sets the SSID name of a device operating in the ad-hoc mode, and is not meaningful with
the infrastructure mode.
WIFI_OWNCHAN
This parameter specifies the channel the Wi-Fi card uses for your own network when
operating in the ad-hoc mode, and is not meaningful with the infrastructure mode.
WIFI_WEP_FLAG
The encryption flag can have one of two values—enabled (
WIFICONF_WEP_ENABLE
) or
disabled (
WIFICONF_WEP_DISABLE
). You can use either 64-bit or 128-bit 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.
WIFI_WEP_KEY0–3
These are the secret keys that are programmed into each device on a WLAN to use WEP
(Wired Equivalent Privacy). Each of these keys must be entered correctly in order for
WEP to work. Both 64-bit and 128-bit keys are supported.
Содержание RCM3000
Страница 1: ...802 11b Wi Fi Add On Kits for RabbitCore and PowerCore Modules User s Manual 019 0092 051130 D ...
Страница 8: ...4 802 11b Wi Fi Add On Kits ...
Страница 28: ...24 802 11b Wi Fi Add On Kits ...
Страница 56: ...52 802 11b Wi Fi Add On Kits ...
Страница 60: ...56 802 11b Wi Fi Add On Kits ...
Страница 68: ...64 802 11b Wi Fi Add On Kits ...
Страница 78: ...74 802 11b Wi Fi Add On Kits ...
Страница 80: ...76 802 11b Wi Fi Add On Kits ...
Страница 82: ...78 RabbitCore RCM3800 ...
Страница 86: ......