514
Platforms
©2000-2008 Tibbo Technology Inc.
bssm
ode
Network mode:
0- PL_WLN_BSS_MODE_INFRASTRUCTURE: This is an infrastructure
network (access point).
1- PL_WLN_BSS_MODE_ADHOC: This is an ad-hoc (device-to-device)
network.
Details
Prior to performing an association attempt, the application must preset the WEP
mode and key if required (see
). For successful association, all
method arguments must be specified correctly. The ssid is the name of the target
wireless network. Remaining parameters can be obtained through the
method: when the method is performed with the network name specified, it stores
the bssid, channel, and bssmode of this network in
, and
R/O properties. For more
Associating With Selected Network
.
The association process is a
. As such, the wln.associate will be rejected
(return 1- REJECTED) if another task is currently in progress. The task will also be
rejected if the Wi-Fi interface is already in the associated state (
= 1- PL_WLN_ASSOCIATED), is running its own network (
= 2- PL_WLN_OWN_NETWORK), or if the Wi-Fi hardware is not
online (
= 0- NO). The method will return 0- ACCEPTED if the task is
accepted for processing.
The task is completed when the
R/O property becomes 0-
PL_WLN_TASK_IDLE. The
event will also be generated
at that time.
Task completion does not imply success -- association result has to be verified by
reading the state of tthe wln.associationstate read-only property after the task is
completed.
.Associationstate R/O Property
Function:
Indicates whether the Wi-Fi interface is idle, associated
with another network, or running its own ad-hoc network.
Type:
Enum (pl_wln_association_states, byte)
Value Range:
0- PL_WLN_NOT_ASSOCIATED (default): The Wi-Fi
interface is not associated with any wireless network and
is not running its own ad-hoc network.
1- PL_WLN_ASSOCIATED: The Wi-Fi interface is
associated with a wireless network.
2- PL_WLN_OWN_NETWORK: The Wi-Fi interface is
running its own ad-hoc network.
See Also:
Associating With Selected Network
,
Terminating Own Ad-hoc Network
,
Details
527
524
525
526
525
511
500
514
514
519
528
523
511
512
512
512
513