MT7687 API Reference  LinkIt SDK v4
Define

Overview

Macros

#define WIFI_MAX_LENGTH_OF_SSID   (32)
 The maximum length of SSID.
 
#define WIFI_MAC_ADDRESS_LENGTH   (6)
 MAC address length.
 
#define WIFI_LENGTH_802_11   (24)
 Length of 802.11 MAC header.
 
#define WIFI_TIMESTAMP_LENGTH   (8)
 Timestamp length in a frame header.
 
#define WIFI_BEACON_INTERVAL_LENGTH   (2)
 Beacon interval length in a frame header.
 
#define WIFI_CAPABILITY_INFO_LENGTH   (2)
 Length of capability information in a frame header.
 
#define WIFI_MAX_NUMBER_OF_STA   (16)
 The Maximum number of stations that can connect to LinkIt 7687 HDK in SoftAP mode.
 
#define WIFI_LENGTH_PASSPHRASE   (64)
 The maximum length of passphrase used in WPA-PSK and WPA2-PSK encryption types.
 
#define WIFI_LENGTH_PMK   (32)
 The maximum length of PMK used in WPA-PSK and WPA2-PSK encryption types.
 
#define WIFI_PROFILE_BUFFER_AP   "AP"
 The AP buffer in a profile.
 
#define WIFI_PROFILE_BUFFER_STA   "STA"
 The STA buffer in a profile.
 
#define WIFI_PROFILE_BUFFER_COMMON   "common"
 The common buffer in a profile.
 
#define WIFI_PROFILE_BUFFER_LENGTH   (128)
 The maximum length of each entity stored in the Flash memory. More...
 
#define WIFI_BAND_2_4_G   (0)
 Specifies 2.4GHz band.
 
#define WIFI_BAND_5_G   (1)
 Specifies 5GHz band.
 
#define WIFI_STATUS_LINK_DISCONNECTED   (0)
 The event ID to indicate the link is disconnected.
 
#define WIFI_STATUS_LINK_CONNECTED   (1)
 The event ID to indicate the link is connected.
 
#define WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_20MHZ   (0x00)
 Specifies 20MHz bandwidth in the 2.4GHz band.
 
#define WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_40MHZ   (0x01)
 Specifies 40MHz bandwidth in the 2.4GHz band.
 
#define WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_2040MHZ   (WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_20MHZ|WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_40MHZ)
 Specifies 20MHz | 40MHz bandwidth in the 2.4GHz band.
 
#define WIFI_MODE_STA_ONLY   (1)
 Station operation mode. More...
 
#define WIFI_MODE_AP_ONLY   (2)
 SoftAP operation mode. More...
 
#define WIFI_MODE_REPEATER   (3)
 Repeater mode. More...
 
#define WIFI_MODE_MONITOR   (4)
 This macro defines the monitoring mode. More...
 
#define WIFI_MODE_P2P_ONLY   (5)
 Supports Wi-Fi Direct feature.
 
#define WIFI_PORT_STA   (0)
 Specifies the STA operation.
 
#define WIFI_PORT_APCLI   WIFI_PORT_STA
 Specifies the AP client operation.
 
#define WIFI_PORT_AP   (1)
 Specifies the AP operation.
 
#define WIFI_NUMBER_WEP_KEYS   (4)
 The group number of WEP keys. More...
 
#define WIFI_MAX_WEP_KEY_LENGTH   (26)
 The maximum length of each WEP key. More...
 
#define WIFI_INIT_TIME_OUT   1000
 Initial Wi-Fi timeout is 1000ms. More...
 
#define WIFI_WPS_MAX_LENGTH_DEVICE_NAME   (32)
 The length of device information used for WPS. More...
 
#define WIFI_WPS_MAX_LENGTH_MANUFACTURER   (64)
 The maximum length of manufacturer's name. More...
 
#define WIFI_WPS_MAX_LENGTH_MODEL_NAME   (32)
 The maximum length of module name. More...
 
#define WIFI_WPS_MAX_LENGTH_MODEL_NUMBER   (32)
 The maximum length of module number. More...
 
#define WIFI_WPS_MAX_LENGTH_SERIAL_NUMBER   (32)
 The maximum length of serial number. More...
 

Macro Definition Documentation

#define WIFI_INIT_TIME_OUT   1000

Initial Wi-Fi timeout is 1000ms.

#define WIFI_MAX_WEP_KEY_LENGTH   (26)

The maximum length of each WEP key.

#define WIFI_MODE_AP_ONLY   (2)

SoftAP operation mode.

In AP mode, other client devices can connect to the Wi-Fi AP.

#define WIFI_MODE_MONITOR   (4)

This macro defines the monitoring mode.

In this mode it can sniffer the Wi-Fi packet in the air given the specific channel and bandwidth. It is used to enter a hybrid mode and handle a raw packet. Call wifi_config_register_rx_handler() to register a raw packet handler once this mode is set.

#define WIFI_MODE_REPEATER   (3)

Repeater mode.

There are two virtual ports in repeater mode, one is WIFI_PORT_AP, and the other is WIFI_PORT_APCLI. Both ports should be configured to operate on the same channel with the same bandwidth, while their other settings can be different. For example, both ports can have different MAC addresses and security modes.

#define WIFI_MODE_STA_ONLY   (1)

Station operation mode.

In this mode the device works as a Wi-Fi client.

#define WIFI_NUMBER_WEP_KEYS   (4)

The group number of WEP keys.

#define WIFI_PROFILE_BUFFER_LENGTH   (128)

The maximum length of each entity stored in the Flash memory.

Allocate a buffer of this length so that the Flash memory entity won't overflow.

#define WIFI_WPS_MAX_LENGTH_DEVICE_NAME   (32)

The length of device information used for WPS.

The maximum length of device name.

#define WIFI_WPS_MAX_LENGTH_MANUFACTURER   (64)

The maximum length of manufacturer's name.

#define WIFI_WPS_MAX_LENGTH_MODEL_NAME   (32)

The maximum length of module name.

#define WIFI_WPS_MAX_LENGTH_MODEL_NUMBER   (32)

The maximum length of module number.

#define WIFI_WPS_MAX_LENGTH_SERIAL_NUMBER   (32)

The maximum length of serial number.