1.
In
iperf.h
file, assign
M2M_WIFI_SEC_OPEN
enum for the
IPERF_WIFI_M2M_WLAN_AUTH
macro instead of
M2M_WIFI_SEC_WPA_PSK
enum.
/** Wi-Fi Settings */
#define IPERF_WIFI_M2M_WLAN_SSID "DEMO_AP" /**< Destination SSID */
#define IPERF_WIFI_M2M_WLAN_AUTH M2M_WIFI_SEC_OPEN /**< Security manner */
#define IPERF_WIFI_M2M_WLAN_PSK "12345678" /**< Password for Destination
SSID */
2.
Call the
m2m_wifi_connect
API as follows.
/* Connect to router. */
m2m_wifi_connect((char *)IPERF_WIFI_M2M_WLAN_SSID, sizeof(IPERF_WIFI_M2M_WLAN_SSID),
IPERF_WIFI_M2M_WLAN_AUTH, NULL, M2M_WIFI_CH_ALL);
3.
Perform similar changes in the AP settings.
6.1.3.2
WPA/WPA2
To change the security method to WPA/WPA2, perform the following.
1.
In
iperf.h
file, assign
IPERF_WIFI_M2M_WLAN_AUTH
macro as
M2M_WIFI_SEC_WPA_PSK
enum.
/** Wi-Fi Settings */
#define IPERF_WIFI_M2M_WLAN_SSID "DEMO_AP" /**< Destination SSID */
#define IPERF_WIFI_M2M_WLAN_AUTH M2M_WIFI_SEC_WPA_PSK /**< Security manner */
#define IPERF_WIFI_M2M_WLAN_PSK "12345678" /**< Password for Destination
SSID */
2.
Call the
m2m_wifi_connect
API as follows.
/* Connect to router. */
m2m_wifi_connect((char *)IPERF_WIFI_M2M_WLAN_SSID, sizeof(IPERF_WIFI_M2M_WLAN_SSID),
IPERF_WIFI_M2M_WLAN_AUTH, (char *)IPERF_WIFI_M2M_WLAN_PSK, M2M_WIFI_CH_ALL);
3.
Perform similar changes in the AP settings.
6.1.3.3
Enterprise
To change the security method to Enterprise, perform the following.
1.
Modify
MAIN_WLAN_802_1X_USR_NAME
,
MAIN_WLAN_802_1X_PWD
to the name and password,
respectively.
2.
Modify
MAIN_WLAN_DEVICE_NAME
to wireless network name.
3.
Call the
m2m_wifi_connect
API as follows.
/* Enterprise Network */
m2m_wifi_connect((char *)IPERF_WIFI_M2M_WLAN_SSID, sizeof(IPERF_WIFI_M2M_WLAN_SSID),
M2M_WIFI_SEC_802_1X,(char *)&gstrCred1x, M2M_WIFI_CH_ALL);
4.
Perform similar changes in the AP settings.
ATWINC15x0
Test Setup
©
2018 Microchip Technology Inc.
Application Note
DS00002879A-page 14