Microchip® Advanced Software Framework

tstrM2MAPConfig Struct Reference

AP Configuration.

This structure holds the configuration parameters for the AP mode. It should be set by the application when it requests to enable the AP operation mode. The AP mode currently supports only OPEN and WEP security.

This structure holds the configuration parameters for the M2M AP mode. It should be set by the application when it requests to enable the M2M AP operation mode. The M2M AP mode currently supports only WEP security (with the NO Security option availabe of course).

This structure holds the configuration parameters for the M2M AP mode. It should be set by the application when it requests to enable the M2M AP operation mode. This mode supports either open, WEP or WPA/WPA2 mixed mode security types.

#include <m2m_types.h>

Data Fields

uint8 __PAD16__ [2]
 
uint8 __PAD24__ [3]
 
uint8 __PAD__ [PAD_SZ(2+M2M_MAX_SSID_LEN+5+sizeof(tuniM2MWifiAuth))]
 
uint8 au8DHCPServerIP [4]
 
uint8 au8Key [M2M_MAX_PSK_LEN]
 
uint8 au8SSID [M2M_MAX_SSID_LEN]
 
uint8 au8WepKey [WEP_104_KEY_STRING_SIZE+1]
 
uint16 u16BeaconInterval
 
uint8 u8IsPMKUsed
 
uint8 u8KeyIndx
 
uint8 u8KeySz
 
uint8 u8ListenChannel
 
uint8 u8MaxSupportedSta
 
uint8 u8SecType
 
uint8 u8SsidHide
 
tuniM2MWifiAuth uniAuth
 

uint8 tstrM2MAPConfig::__PAD16__[2]

Padding bytes for forcing alignment

uint8 tstrM2MAPConfig::__PAD24__[3]

Padding bytes for forcing alignment

uint8 tstrM2MAPConfig::__PAD__[PAD_SZ(2+M2M_MAX_SSID_LEN+5+sizeof(tuniM2MWifiAuth))]

Padding bytes for forcing 4-byte alignment

uint8 tstrM2MAPConfig::au8DHCPServerIP

Ap IP server address

AP DHCP server address

Referenced by enable_disable_ap_mode(), m2m_wifi_start_provision_mode(), main(), and wifi_ap_provision().

uint8 tstrM2MAPConfig::au8Key[M2M_MAX_PSK_LEN]

WPA key

uint8 tstrM2MAPConfig::au8SSID

AP SSID

< Configuration parameters for the WiFi AP.AP SSID

Referenced by atCmd_ApEnable_Handler(), enable_disable_ap_mode(), main(), sta_task(), and wifi_ap_provision().

uint8 tstrM2MAPConfig::au8WepKey

Wep key

WEP key

Referenced by main(), and wifi_ap_provision().

uint16 tstrM2MAPConfig::u16BeaconInterval

< Configuration parameters for the WiFi AP. Time between two consecutive beacons in TUs (1024 usec). A value of 0 would use the FW default

Referenced by sta_task().

uint8 tstrM2MAPConfig::u8IsPMKUsed

set to true if the PMK is calculated on the host .

Referenced by m2m_wifi_enable_ap().

uint8 tstrM2MAPConfig::u8KeyIndx

Wep key Index

WEP key index

Referenced by main(), and wifi_ap_provision().

uint8 tstrM2MAPConfig::u8KeySz

Wep/WPA key Size

WEP key size

Referenced by main(), and wifi_ap_provision().

uint8 tstrM2MAPConfig::u8ListenChannel

Wi-Fi RF Channel which the AP will operate on

Referenced by atCmd_ApEnable_Handler(), enable_disable_ap_mode(), main(), sta_task(), and wifi_ap_provision().

uint8 tstrM2MAPConfig::u8MaxSupportedSta

Max supported stations for AP. Val 0 considered as default 8 stations Val > 8 are considered upto 8 stations

uint8 tstrM2MAPConfig::u8SecType

Security type: Open, WEP and WPA2 modes supported as defined in tenuM2mSecType

Security type: Open, WEP or WPA/WPA2 mixed mode

Security type: OPEN or WEP

Referenced by atCmd_ApEnable_Handler(), enable_disable_ap_mode(), main(), sta_task(), and wifi_ap_provision().

uint8 tstrM2MAPConfig::u8SsidHide

SSID Status "Hidden(1)/Visible(0)"

Referenced by atCmd_ApEnable_Handler().

tuniM2MWifiAuth tstrM2MAPConfig::uniAuth

Union holding all possible authentication parameters corresponding the current security types.

Referenced by atCmd_ApEnable_Handler(), m2m_wifi_enable_ap(), and sta_task().