MT7687 API Reference  LinkIt SDK v4
wifi_api.h File Reference

Wi-Fi processor configuration / settings for the STA operations. More...

#include "stdint.h"
#include "stdbool.h"

Go to the source code of this file.

Data Structures

struct  wifi_sta_config_t
 This structure is the Wi-Fi configuration for initialization in STA mode. More...
 
struct  wifi_ap_config_t
 This structure is the Wi-Fi configuration for initialization in AP mode. More...
 
struct  wifi_config_t
 Wi-Fi configuration for initialization. More...
 
struct  wifi_config_ext_t
 Wi-Fi extention configuration for initialization. More...
 
struct  wifi_wep_key_t
 Wi-Fi WEP keys. More...
 
struct  wifi_profile_t
 Wi-Fi profile entity. More...
 
struct  wifi_wps_element_t
 This defines the WPS element. More...
 
struct  wifi_scan_list_item_t
 This structure defines the list of scanned APs with their corresponding information. More...
 
struct  wifi_scan_list_t
 This structure defines a link to the scanned AP list. More...
 
struct  wifi_rssi_sample_t
 The RSSI sample is a measurement of the power in a received radio signal. More...
 
union  wifi_transmit_setting_t
 Specifies the Wi-Fi transmitter settings, including MCS, LDPC, bandwidth, short-GI algorithms, STBC and others. More...
 
struct  wifi_sta_list_t
 Specifies the Wi-Fi station items, including the Wi-Fi transmitter settings, the RSSI sample, MAC address, power saving mode, bandwidth and keep alive status. More...
 
struct  wifi_cipher_key_t
 This structure provides the detailed cipher information. More...
 
struct  wifi_channel_table_t
 This structures provide the country code information. More...
 
struct  wifi_country_code_t
 
struct  wifi_wps_device_info_t
 Represents the device information used for WPS. More...
 
struct  wifi_wps_credential_info_t
 Represents the credentials used for WPS. More...
 

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...
 

Typedefs

typedef int32_t(* wifi_event_handler_t) (wifi_event_t event, uint8_t *payload, uint32_t length)
 This defines the Wi-Fi event handler. More...
 
typedef wifi_event_handler_t wifi_event_handler
 This is only for compatibility purpose, so that applications implemented with an earlier version of the API can work with the updated API.
 
typedef int32_t(* wifi_rx_handler_t) (uint8_t *payload, uint32_t length)
 This defines the 802.11 RX raw packet handler. More...
 

Enumerations

enum  wifi_event_t {
  WIFI_EVENT_IOT_CONNECTED = 0,
  WIFI_EVENT_IOT_SCAN_COMPLETE,
  WIFI_EVENT_IOT_DISCONNECTED,
  WIFI_EVENT_IOT_PORT_SECURE,
  WIFI_EVENT_IOT_REPORT_BEACON_PROBE_RESPONSE,
  WIFI_EVENT_IOT_WPS_COMPLETE,
  WIFI_EVENT_IOT_INIT_COMPLETE,
  WIFI_EVENT_IOT_REPORT_FILTERED_FRAME,
  WIFI_EVENT_IOT_CONNECTION_FAILED,
  WIFI_EVENT_MAX_NUMBER
}
 This enumeration defines the supported events generated by the Wi-Fi driver. More...
 
enum  wifi_rx_filter_t {
  WIFI_RX_FILTER_DROP_STBC_BCN_BC_MC,
  WIFI_RX_FILTER_DROP_FCS_ERR,
  WIFI_RX_FILTER_RESERVED,
  WIFI_RX_FILTER_DROP_VER_NOT_0,
  WIFI_RX_FILTER_DROP_PROBE_REQ,
  WIFI_RX_FILTER_DROP_MC_FRAME,
  WIFI_RX_FILTER_DROP_BC_FRAME,
  WIFI_RX_FILTER_DROP_BSSID_BCN = 11,
  WIFI_RX_FILTER_RM_FRAME_REPORT_EN = 12,
  WIFI_RX_FILTER_DROP_CTRL_RSV,
  WIFI_RX_FILTER_DROP_CTS,
  WIFI_RX_FILTER_DROP_RTS,
  WIFI_RX_FILTER_DROP_DUPLICATE,
  WIFI_RX_FILTER_DROP_NOT_MY_BSSID,
  WIFI_RX_FILTER_DROP_NOT_UC2ME,
  WIFI_RX_FILTER_DROP_DIFF_BSSID_BTIM,
  WIFI_RX_FILTER_DROP_NDPA
}
 This enumeration defines the RX filter register's bitmap. More...
 
enum  wifi_auth_mode_t {
  WIFI_AUTH_MODE_OPEN = 0,
  WIFI_AUTH_MODE_SHARED,
  WIFI_AUTH_MODE_AUTO_WEP,
  WIFI_AUTH_MODE_WPA,
  WIFI_AUTH_MODE_WPA_PSK,
  WIFI_AUTH_MODE_WPA_None,
  WIFI_AUTH_MODE_WPA2,
  WIFI_AUTH_MODE_WPA2_PSK,
  WIFI_AUTH_MODE_WPA_WPA2,
  WIFI_AUTH_MODE_WPA_PSK_WPA2_PSK
}
 This enumeration defines the wireless authentication mode to indicate the Wi-Fi device’s authentication attribute. More...
 
enum  wifi_encrypt_type_t {
  WIFI_ENCRYPT_TYPE_WEP_ENABLED = 0,
  WIFI_ENCRYPT_TYPE_ENCRYPT1_ENABLED = WIFI_ENCRYPT_TYPE_WEP_ENABLED,
  WIFI_ENCRYPT_TYPE_WEP_DISABLED = 1,
  WIFI_ENCRYPT_TYPE_ENCRYPT_DISABLED = WIFI_ENCRYPT_TYPE_WEP_DISABLED,
  WIFI_ENCRYPT_TYPE_WEP_KEY_ABSENT = 2,
  WIFI_ENCRYPT_TYPE_ENCRYPT_KEY_ABSENT = WIFI_ENCRYPT_TYPE_WEP_KEY_ABSENT,
  WIFI_ENCRYPT_TYPE_WEP_NOT_SUPPORTED = 3,
  WIFI_ENCRYPT_TYPE_ENCRYPT_NOT_SUPPORTED = WIFI_ENCRYPT_TYPE_WEP_NOT_SUPPORTED,
  WIFI_ENCRYPT_TYPE_TKIP_ENABLED = 4,
  WIFI_ENCRYPT_TYPE_ENCRYPT2_ENABLED = WIFI_ENCRYPT_TYPE_TKIP_ENABLED,
  WIFI_ENCRYPT_TYPE_AES_ENABLED = 6,
  WIFI_ENCRYPT_TYPE_ENCRYPT3_ENABLED = WIFI_ENCRYPT_TYPE_AES_ENABLED,
  WIFI_ENCRYPT_TYPE_AES_KEY_ABSENT = 7,
  WIFI_ENCRYPT_TYPE_TKIP_AES_MIX = 8,
  WIFI_ENCRYPT_TYPE_ENCRYPT4_ENABLED = WIFI_ENCRYPT_TYPE_TKIP_AES_MIX,
  WIFI_ENCRYPT_TYPE_TKIP_AES_KEY_ABSENT = 9,
  WIFI_ENCRYPT_TYPE_GROUP_WEP40_ENABLED = 10,
  WIFI_ENCRYPT_TYPE_GROUP_WEP104_ENABLED = 11
}
 This enumeration defines the wireless encryption type to indicate the Wi-Fi device’s encryption attribute. More...
 
enum  wifi_phy_mode_t {
  WIFI_PHY_11BG_MIXED = 0,
  WIFI_PHY_11B,
  WIFI_PHY_11A,
  WIFI_PHY_11ABG_MIXED,
  WIFI_PHY_11G,
  WIFI_PHY_11ABGN_MIXED,
  WIFI_PHY_11N_2_4G,
  WIFI_PHY_11GN_MIXED,
  WIFI_PHY_11AN_MIXED,
  WIFI_PHY_11BGN_MIXED,
  WIFI_PHY_11AGN_MIXED,
  WIFI_PHY_11N_5G
}
 This enumeration defines the wireless physical mode. More...
 
enum  wifi_security_cipher_suits_t {
  WIFI_CIPHER_NONE = 0,
  WIFI_CIPHER_WEP64,
  WIFI_CIPHER_WEP128,
  WIFI_CIPHER_TKIP,
  WIFI_CIPHER_AES,
  WIFI_CIPHER_CKIP64,
  WIFI_CIPHER_CKIP128,
  WIFI_CIPHER_CKIP152,
  WIFI_CIPHER_SMS4,
  WIFI_CIPHER_WEP152,
  WIFI_CIPHER_BIP,
  WIFI_CIPHER_WAPI,
  WIFI_CIPHER_TKIP_NO_MIC
}
 This enumeration defines wireless security cipher suits. More...
 
enum  wifi_bandwidth_ext_t {
  WIFI_BANDWIDTH_EXT_40MHZ_UP,
  WIFI_BANDWIDTH_EXT_40MHZ_BELOW
}
 This enumeration defines 40MHz bandwidth extension. More...
 
enum  wifi_power_saving_mode_t {
  WIFI_POWER_SAVING_MODE_OFF = 0,
  WIFI_POWER_SAVING_MODE_LEGACY,
  WIFI_POWER_SAVING_MODE_FAST
}
 This enumeration defines three power saving modes. More...
 
enum  wps_device_password_id_t {
  WIFI_WPS_DPID_DEFAULT = 0x0000,
  WIFI_WPS_DPID_USER_SPECIFIED = 0x0001,
  WIFI_WPS_DPID_MACHINE_SPECIFIED = 0x0002,
  WIFI_WPS_DPID_REKEY = 0x0003,
  WIFI_WPS_DPID_PUSHBUTTON = 0x0004,
  WIFI_WPS_DPID_REGISTRAR_SPECIFIED = 0x0005,
  WIFI_WPS_DPID_MAX_NUMBER = 0xFFFF
}
 This enumeration of device password ID is used for WPS. More...
 
enum  wps_config_method_t {
  WIFI_WPS_CONFIG_USBA = 0x0001,
  WIFI_WPS_CONFIG_ETHERNET = 0x0002,
  WIFI_WPS_CONFIG_LABEL = 0x0004,
  WIFI_WPS_CONFIG_DISPLAY = 0x0008,
  WIFI_WPS_CONFIG_EXTERNAL_NFC_TOKEN = 0x0010,
  WIFI_WPS_CONFIG_INTEGRATED_NFC_TOKEN = 0x0020,
  WIFI_WPS_CONFIG_NFC_INTERFACE = 0x0040,
  WIFI_WPS_CONFIG_PUSHBUTTON = 0x0080,
  WIFI_WPS_CONFIG_KEYPAD = 0x0100,
  WIFI_WPS_CONFIG_VIRTUAL_PUSHBUTTON = 0x0280,
  WIFI_WPS_CONFIG_PHY_PUSHBUTTON = 0x0480,
  WIFI_WPS_CONFIG_VIRTUAL_DISPLAY = 0x2008,
  WIFI_WPS_CONFIG_PHY_DISPLAY = 0x4008
}
 This enumeration lists the configuration methods supported by the Enrollee or Registrar. More...
 

Functions

void wifi_init (wifi_config_t *config, wifi_config_ext_t *config_ext)
 This function initializes the Wi-Fi module. More...
 
int32_t wifi_config_get_opmode (uint8_t *mode)
 This function receives the wireless operation mode of the Wi-Fi driver. More...
 
int32_t wifi_config_set_opmode (uint8_t mode)
 This function sets the Wi-Fi operation mode and it takes effect immediately. More...
 
int32_t wifi_config_get_mac_address (uint8_t port, uint8_t *address)
 This function gets the MAC address of a specific wireless port used by the Wi-Fi driver. More...
 
int32_t wifi_config_get_ssid (uint8_t port, uint8_t *ssid, uint8_t *ssid_length)
 This function gets the SSID and SSID length of a specific wireless port used by the Wi-Fi driver. More...
 
int32_t wifi_config_set_ssid (uint8_t port, uint8_t *ssid, uint8_t ssid_length)
 This function sets the SSID and SSID length that the Wi-Fi driver uses for a specific wireless port. More...
 
int32_t wifi_config_get_bssid (uint8_t *bssid)
 This function should be used only in station mode or in APCLI port of repeater mode. More...
 
int32_t wifi_config_set_bssid (uint8_t *bssid)
 This function should be used only in station mode or in APCLI port of repeater mode. More...
 
int32_t wifi_config_set_bandwidth (uint8_t port, uint8_t bandwidth)
 This function sets the bandwidth configuration that the Wi-Fi driver uses for a specific wireless port. More...
 
int32_t wifi_config_get_bandwidth (uint8_t port, uint8_t *bandwidth)
 This function gets the bandwidth configuration that the Wi-Fi driver uses for a specific wireless port. More...
 
int32_t wifi_config_set_channel (uint8_t port, uint8_t channel)
 This function sets the channel number that the Wi-Fi driver uses for a specific wireless port. More...
 
int32_t wifi_config_get_channel (uint8_t port, uint8_t *channel)
 This function gets the channel number that the Wi-Fi driver uses for a specific wireless port. More...
 
int32_t wifi_config_get_wireless_mode (uint8_t port, wifi_phy_mode_t *mode)
 This function gets the wireless mode that the Wi-Fi driver uses for a specific wireless port. More...
 
int32_t wifi_config_set_wireless_mode (uint8_t port, wifi_phy_mode_t mode)
 This function gets the wireless mode that the Wi-Fi driver uses for a specific wireless port. More...
 
int32_t wifi_config_set_country_code (wifi_country_code_t *wifi_country_code)
 Set the country code. More...
 
int32_t wifi_config_get_country_code (wifi_country_code_t *wifi_country_code)
 This function gets the country code string that the Wi-Fi driver uses. More...
 
int32_t wifi_config_get_country_region (uint8_t band, uint8_t *region)
 This function gets the country region that the Wi-Fi driver uses for a specific wireless port. More...
 
int32_t wifi_config_set_country_region (uint8_t band, uint8_t region)
 This function sets the country region that the Wi-Fi driver uses for a specific wireless port. More...
 
int32_t wifi_config_get_dtim_interval (uint8_t *interval)
 This function gets the DTIM interval used in the Wi-Fi driver in the SoftAP mode. More...
 
int32_t wifi_config_set_dtim_interval (uint8_t interval)
 This function sets the DTIM interval used in the Wi-Fi driver in the SoftAP mode. More...
 
int32_t wifi_config_get_listen_interval (uint8_t *interval)
 This function gets the beacon listen interval used in the Wi-Fi driver in a station mode. More...
 
int32_t wifi_config_set_listen_interval (uint8_t interval)
 This function sets the beacon listen interval used in the Wi-Fi driver in a station mode. More...
 
int32_t wifi_config_get_security_mode (uint8_t port, wifi_auth_mode_t *auth_mode, wifi_encrypt_type_t *encrypt_type)
 This function gets the authentication and encryption modes used in the Wi-Fi driver for a specific wireless port. More...
 
int32_t wifi_config_set_security_mode (uint8_t port, wifi_auth_mode_t auth_mode, wifi_encrypt_type_t encrypt_type)
 This function sets the authentication and encryption modes used in the Wi-Fi driver for a specific wireless port. More...
 
int32_t wifi_config_get_wpa_psk_key (uint8_t port, uint8_t *passphrase, uint8_t *passphrase_length)
 This function gets the password of the WPA-PSK or WPA2-PSK encryption type used in the Wi-Fi driver for a specific wireless port. More...
 
int32_t wifi_config_set_wpa_psk_key (uint8_t port, uint8_t *passphrase, uint8_t passphrase_length)
 This function sets the password of the WPA-PSK or WPA2-PSK encryption type used in the Wi-Fi driver for a specific wireless port. More...
 
int32_t wifi_config_get_pmk (uint8_t port, uint8_t *pmk)
 This function gets the PMK used in the Wi-Fi driver for a specific wireless port. More...
 
int32_t wifi_config_set_pmk (uint8_t port, uint8_t *pmk)
 
int32_t wifi_config_get_wep_key (uint8_t port, wifi_wep_key_t *wep_keys)
 This function gets the WEP key group used in the Wi-Fi driver for a specific wireless port. More...
 
int32_t wifi_config_set_wep_key (uint8_t port, wifi_wep_key_t *wep_keys)
 This function sets the WEP key group used in the Wi-Fi driver for a specific wireless port. More...
 
int32_t wifi_config_reload_setting (void)
 This function informs the wpa_supplicant to reload the configuration and applies the configuration settings of the Wi-Fi Configuration APIs. More...
 
int32_t wifi_config_register_rx_handler (wifi_rx_handler_t wifi_rx_handler)
 This function registers a handler to receive 802.11 raw packets from a network processor. More...
 
int32_t wifi_config_unregister_rx_handler (void)
 This function unregisters the handler to receive 802.11 raw packets from the network processor. More...
 
int32_t wifi_config_get_rx_filter (uint32_t *flag)
 This function gets the Wi-Fi RX filter used in the Wi-Fi driver. More...
 
int32_t wifi_config_set_rx_filter (uint32_t flag)
 This function sets the Wi-Fi RX filter used in the Wi-Fi driver. More...
 
int32_t wifi_config_get_smart_connection_filter (uint8_t *flag)
 This function gets MediaTek Smart Connection RX Filter used in the Wi-Fi driver. More...
 
int32_t wifi_config_set_smart_connection_filter (uint8_t flag)
 This function sets MediaTek Smart Connection RX Filter used in the Wi-Fi driver. More...
 
int32_t wifi_config_get_radio (uint8_t *on_off)
 This function gets the radio status of the Wi-Fi driver. More...
 
int32_t wifi_config_set_radio (uint8_t on_off)
 This function sets the radio status of the Wi-Fi driver. More...
 
int32_t wifi_connection_disconnect_ap (void)
 This function disconnects the current connection from AP. More...
 
int32_t wifi_connection_disconnect_sta (uint8_t *address)
 This function disconnects specific station's connection, and takes effect immediately. More...
 
int32_t wifi_connection_get_link_status (uint8_t *link_status)
 This function gets the current STA port's link up or link down connection status. More...
 
int32_t wifi_connection_scan_init (wifi_scan_list_item_t *ap_list, uint32_t max_count)
 This function initializes the scan table to the driver. More...
 
int32_t wifi_connection_scan_deinit (void)
 This function deinitializes the scan table. More...
 
int32_t wifi_connection_start_scan (uint8_t *ssid, uint8_t ssid_length, uint8_t *bssid, uint8_t scan_mode, uint8_t scan_option)
 This function starts Wi-Fi Scanning. More...
 
int32_t wifi_connection_stop_scan (void)
 This function stops the Wi-Fi Scanning triggered by wifi_connection_start_scan(). More...
 
int32_t wifi_connection_parse_beacon (uint8_t *pbuf, uint32_t len, wifi_scan_list_item_t *ap_data)
 This function parses the beacon or probe request packets. More...
 
int32_t wifi_connection_get_sta_list (uint8_t *number, wifi_sta_list_t *sta_list)
 This function gets the station list associated with the Wi-Fi, only for SoftAP mode. More...
 
int32_t wifi_connection_get_max_sta_number (uint8_t *sta_number)
 This function gets the maximum number of the supported stations in the AP mode or repeater mode. More...
 
int32_t wifi_connection_get_rssi (int8_t *rssi)
 This function gets the RSSI of the connected AP. More...
 
int32_t wifi_connection_register_event_handler (wifi_event_t event, wifi_event_handler_t handler)
 This function registers the Wi-Fi event handler. More...
 
int32_t wifi_connection_register_event_notifier (uint8_t event, wifi_event_handler_t notifier)
 
int32_t wifi_connection_unregister_event_handler (wifi_event_t event, wifi_event_handler_t handler)
 This function unregisters Wi-Fi event handler. More...
 
int32_t wifi_connection_unregister_event_notifier (uint8_t event, wifi_event_handler_t notifier)
 
int32_t wifi_profile_set_opmode (uint8_t mode)
 
int32_t wifi_profile_get_opmode (uint8_t *mode)
 
int32_t wifi_profile_set_channel (uint8_t port, uint8_t channel)
 
int32_t wifi_profile_get_channel (uint8_t port, uint8_t *channel)
 
int32_t wifi_profile_set_bandwidth (uint8_t port, uint8_t bandwidth)
 
int32_t wifi_profile_get_bandwidth (uint8_t port, uint8_t *bandwidth)
 
int32_t wifi_profile_get_mac_address (uint8_t port, uint8_t *address)
 
int32_t wifi_profile_set_mac_address (uint8_t port, uint8_t *address)
 
int32_t wifi_profile_set_ssid (uint8_t port, uint8_t *ssid, uint8_t ssid_length)
 
int32_t wifi_profile_get_ssid (uint8_t port, uint8_t *ssid, uint8_t *ssid_length)
 
int32_t wifi_profile_set_wireless_mode (uint8_t port, wifi_phy_mode_t mode)
 
int32_t wifi_profile_get_wireless_mode (uint8_t port, wifi_phy_mode_t *mode)
 
int32_t wifi_profile_set_security_mode (uint8_t port, wifi_auth_mode_t auth_mode, wifi_encrypt_type_t encrypt_type)
 
int32_t wifi_profile_get_security_mode (uint8_t port, wifi_auth_mode_t *auth_mode, wifi_encrypt_type_t *encrypt_type)
 
int32_t wifi_profile_set_wpa_psk_key (uint8_t port, uint8_t *passphrase, uint8_t passphrase_length)
 
int32_t wifi_profile_get_wpa_psk_key (uint8_t port, uint8_t *passphrase, uint8_t *passphrase_length)
 
int32_t wifi_profile_set_pmk (uint8_t port, uint8_t *pmk)
 
int32_t wifi_profile_get_pmk (uint8_t port, uint8_t *pmk)
 
int32_t wifi_profile_set_wep_key (uint8_t port, wifi_wep_key_t *wep_keys)
 
int32_t wifi_profile_get_wep_key (uint8_t port, wifi_wep_key_t *wep_keys)
 
int32_t wifi_profile_get_country_region (uint8_t band, uint8_t *region)
 
int32_t wifi_profile_set_country_region (uint8_t band, uint8_t region)
 
int32_t wifi_profile_get_dtim_interval (uint8_t *interval)
 
int32_t wifi_profile_set_dtim_interval (uint8_t interval)
 
int32_t wifi_profile_get_listen_interval (uint8_t *interval)
 
int32_t wifi_profile_set_listen_interval (uint8_t interval)
 
int32_t wifi_profile_set_power_save_mode (uint8_t power_save_mode)
 
int32_t wifi_profile_get_power_save_mode (uint8_t *power_save_mode)
 
int32_t wifi_profile_commit_setting (char *profile_section)
 
int32_t wifi_profile_get_profile (uint8_t port, wifi_profile_t *profile)
 
int32_t wifi_wps_config_get_pin_code (uint8_t port, uint8_t *pin_code)
 This function gets the pin code of a specific wireless port, the pin code may be different for each function call. More...
 
int32_t wifi_wps_connection_by_pbc (uint8_t port, uint8_t *bssid)
 This function triggers a WPS PBC process. More...
 
int32_t wifi_wps_connection_by_pin (uint8_t port, uint8_t *bssid, uint8_t *pin_code)
 This function triggers the WPS PIN process. More...
 
int32_t wifi_wps_config_set_device_info (wifi_wps_device_info_t *device_info)
 This function sets the WPS device information. More...
 
int32_t wifi_wps_config_get_device_info (wifi_wps_device_info_t *device_info)
 This function gets the WPS device information. More...
 
int32_t wifi_wps_config_set_auto_connection (bool auto_connection)
 This function controls the auto connection behavior after the WPS credential information is received by the Enrollee. More...
 
int32_t wifi_wps_config_get_auto_connection (bool *auto_connection)
 This function gets auto connection configuration. More...
 
int32_t wifi_connection_send_raw_packet (uint8_t *raw_packet, uint32_t length)
 This function sends a raw Wi-Fi packet over the air. More...
 

Detailed Description

Wi-Fi processor configuration / settings for the STA operations.