ProgrammingChapter —7
280 700Series Color MobileComputer User’s Manual
SetAuthenticationMode()

Call this function to set the desired authentication mode .

Syntax UINT SetAuthenticationMode( ULONG );
Parameters NDIS_RADIO_AUTH_MODE_OPEN 802.11 Open Authentication. Indicates that
the radiois using an open system.
NDIS_RADIO_AUTH_MODE_SHARED 802.11 Shared Authentication. Indicates that
the radio is using a shared key.
NDIS_RADIO_AUTH_MODE_AUTO Auto switch between Open/Shared. Indicates
automaticdetection is used when available.
NDIS_RADIO_AUTH_MODE_ERROR Defined as error value. Indicates the authenti-
cationmode was not determined at this time
or is unknown.
NDIS_RADIO_AUTH_MODE_WPA WPA Authentication
NDIS_RADIO_AUTH_MODE_WPA_PSK WPA Preshared Key Authentication
NDIS_RADIO_AUTH_MODE_WPA_NONE WPA None
Return Values ERROR_SUCCESS when successful, ERR_QUERY_FAILED when th e query failed, or
ERR_CONNECT_FAILED if a connection with t he radio failed.
Remarks None.
Definitions #ifdef DYNAMIC_LOADING
typedef UINT (*PFN_SetAuthenticationMode)(ULONG);
#else
UINT SetAuthenticationMode(ULONG);
#endif
SetChannel()

This function is currently not implemented. Ad-hoc networ ks automatical-

ly select a channel or use the already existing channel.

Syntax UINT SetChannel( USHORT );
Parameters USHORT value that should populatewith th e desired channel (1–14).
Return Values None.
Remarks None.
Definitions #ifdef DYNAMIC_LOADING
typedef UINT (*PFN_SetChannel)(USHORT);
#else
UINT SetChannel(USHORT);
#endif