WFCPElementsStruct Structure

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
WFCPElementsStruct Structure
C
struct WFCPElementsStruct {
  UINT8 ssid[WF_MAX_SSID_LENGTH];
  UINT8 bssid[WF_BSSID_LENGTH];
  UINT8 ssidLength;
  UINT8 securityType;
  UINT8 securityKey[WF_MAX_SECURITY_KEY_LENGTH];
  UINT8 securityKeyLength;
  UINT8 wepDefaultKeyId;
  UINT8 networkType;
  UINT8 adHocBehavior;
  UINT8 hiddenSSID;
  UINT8 wepKeyType;
};
Description

Connection profile elements structure

Members
Members 
Description 
UINT8 ssid[WF_MAX_SSID_LENGTH]; 
SSID, which must be less than or equal to 32 characters. Set to all 0’s if not being used. If ssidLength is 0 this field is ignored. If SSID is not defined then the MRF24W, when using this profile to connect, will scan all channels within its regional domain.
Default: SSID not used. 
UINT8 bssid[WF_BSSID_LENGTH]; 
Basic Service Set Identifier, always 6 bytes. This is the 48-bit MAC of the SSID. It is an optional field that can be used to specify a specific SSID if more than one AP exists with the same SSID. This field can also be used in lieu of the SSID.
Set each byte to 0xFF if BSSID is not going to be used. Default: BSSID not used (all FF’s) 
UINT8 ssidLength; 
Number of ASCII bytes in ssid. Set to 0 is SSID is not going to be used.
Default: 0 
UINT8 securityType; 
Designates the desired security level for the connection. Choices are:  
UINT8 securityKey[WF_MAX_SECURITY_KEY_LENGTH]; 
Set to NULL if securityType is WF_SECURITY_OPEN. If securityKeyLength is 0 this field is ignored.  
UINT8 securityKeyLength; 
Number of bytes used in the securityKey. Set to 0 if securityType is WF_SECURITY_OPEN.  
UINT8 wepDefaultKeyId; 
This field is only used if securityType is WF_SECURITY_WEP_40 or WF_SECURITY_WEP_104. This field designates which of the four WEP keys defined in securityKey to use when connecting to a WiFi network. Only WEP key index (wepDefaultKeyId) 0 is used in RF module FW. 
UINT8 networkType; 
WF_INFRASTRUCTURE / WF_ADHOC / WF_P2P / WF_SOFT_AP
Default: WF_INFRASTRUCTURE 
UINT8 adHocBehavior; 
Only applicable if networkType is WF_ADHOC. Configures Adhoc behavior. Choices are:  
UINT8 hiddenSSID; 
1 - enable hidden ssid in adhoc mode 
UINT8 wepKeyType; 
0- shared key, 1 - open key 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.