MT7687 API Reference  LinkIt SDK v4
wifi_api.h
Go to the documentation of this file.
1 /* Copyright Statement:
2  *
3  * (C) 2005-2016 MediaTek Inc. All rights reserved.
4  *
5  * This software/firmware and related documentation ("MediaTek Software") are
6  * protected under relevant copyright laws. The information contained herein
7  * is confidential and proprietary to MediaTek Inc. ("MediaTek") and/or its licensors.
8  * Without the prior written permission of MediaTek and/or its licensors,
9  * any reproduction, modification, use or disclosure of MediaTek Software,
10  * and information contained herein, in whole or in part, shall be strictly prohibited.
11  * You may only use, reproduce, modify, or distribute (as applicable) MediaTek Software
12  * if you have agreed to and been bound by the applicable license agreement with
13  * MediaTek ("License Agreement") and been granted explicit permission to do so within
14  * the License Agreement ("Permitted User"). If you are not a Permitted User,
15  * please cease any access or use of MediaTek Software immediately.
16  * BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
17  * THAT MEDIATEK SOFTWARE RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES
18  * ARE PROVIDED TO RECEIVER ON AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL
19  * WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
20  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
21  * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
22  * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
23  * SUPPLIED WITH MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH
24  * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES
25  * THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES
26  * CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK
27  * SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR
28  * STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND
29  * CUMULATIVE LIABILITY WITH RESPECT TO MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
30  * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE MEDIATEK SOFTWARE AT ISSUE,
31  * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO
32  * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
33  */
34 
113 #ifndef __WIFI_API_H__
114 #define __WIFI_API_H__
115 
116 #include "stdint.h"
117 #include "stdbool.h"
118 
119 
120 #ifdef __cplusplus
121 extern "C" {
122 #endif
123 
130 #define WIFI_MAX_LENGTH_OF_SSID (32)
131 
134 #define WIFI_MAC_ADDRESS_LENGTH (6)
135 
139 #define WIFI_LENGTH_802_11 (24)
140 
143 #define WIFI_TIMESTAMP_LENGTH (8)
144 
147 #define WIFI_BEACON_INTERVAL_LENGTH (2)
148 
151 #define WIFI_CAPABILITY_INFO_LENGTH (2)
152 
156 #define WIFI_MAX_NUMBER_OF_STA (16)
157 
160 #define WIFI_LENGTH_PASSPHRASE (64)
161 
164 #define WIFI_LENGTH_PMK (32)
165 
168 #define WIFI_PROFILE_BUFFER_AP "AP"
169 
172 #define WIFI_PROFILE_BUFFER_STA "STA"
173 
176 #define WIFI_PROFILE_BUFFER_COMMON "common"
177 
182 #define WIFI_PROFILE_BUFFER_LENGTH (128)
183 
186 #define WIFI_BAND_2_4_G (0)
187 
190 #define WIFI_BAND_5_G (1)
191 
192 
195 #define WIFI_STATUS_LINK_DISCONNECTED (0)
196 
199 #define WIFI_STATUS_LINK_CONNECTED (1)
200 
203 #define WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_20MHZ (0x00)
204 
207 #define WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_40MHZ (0x01)
208 
211 #define WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_2040MHZ (WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_20MHZ|WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_40MHZ)
212 
213 
217 #define WIFI_MODE_STA_ONLY (1)
218 
222 #define WIFI_MODE_AP_ONLY (2)
223 
228 #define WIFI_MODE_REPEATER (3)
229 
237 #define WIFI_MODE_MONITOR (4)
238 
242 #define WIFI_MODE_P2P_ONLY (5)
243 
246 #define WIFI_PORT_STA (0)
247 
251 #define WIFI_PORT_APCLI WIFI_PORT_STA
252 
256 #define WIFI_PORT_AP (1)
257 
258 #define WIFI_NUMBER_WEP_KEYS (4)
259 #define WIFI_MAX_WEP_KEY_LENGTH (26)
261 #define WIFI_INIT_TIME_OUT 1000
266 #define WIFI_WPS_MAX_LENGTH_DEVICE_NAME (32)
267 #define WIFI_WPS_MAX_LENGTH_MANUFACTURER (64)
268 #define WIFI_WPS_MAX_LENGTH_MODEL_NAME (32)
269 #define WIFI_WPS_MAX_LENGTH_MODEL_NUMBER (32)
270 #define WIFI_WPS_MAX_LENGTH_SERIAL_NUMBER (32)
282 typedef enum {
292  WIFI_EVENT_MAX_NUMBER
293 } wifi_event_t;
294 
297 typedef enum {
316 
319 typedef enum {
331 
334 typedef enum {
353 #ifdef WAPI_SUPPORT
354  WIFI_ENCRYPT_TYPE_ENCRYPT_SMS4_ENABLED,
355 #endif /* WAPI_SUPPORT */
357 
358 
361 typedef enum {
375 
378 typedef enum {
393 
394 
397 typedef enum {
401 
405 typedef enum {
410 
416 typedef enum {
423  WIFI_WPS_DPID_MAX_NUMBER = 0xFFFF
425 
426 
432 typedef enum {
447 
466 typedef int32_t (* wifi_event_handler_t)(wifi_event_t event, uint8_t *payload, uint32_t length);
467 
468 
473 
474 
482 typedef int32_t (* wifi_rx_handler_t)(uint8_t *payload, uint32_t length);
483 
495 typedef struct {
496  uint8_t ssid[WIFI_MAX_LENGTH_OF_SSID];
497  uint8_t ssid_length;
498  uint8_t bssid_present;
499  uint8_t bssid[WIFI_MAC_ADDRESS_LENGTH];
500  uint8_t password[WIFI_LENGTH_PASSPHRASE];
501  uint8_t password_length;
503 
504 
507 typedef struct {
508  uint8_t ssid[WIFI_MAX_LENGTH_OF_SSID];
509  uint8_t ssid_length;
510  uint8_t password[WIFI_LENGTH_PASSPHRASE];
511  uint8_t password_length;
514  uint8_t channel;
515  uint8_t bandwidth;
518 
519 
522 typedef struct {
523  uint8_t opmode;
526 } wifi_config_t;
527 
528 
531 typedef struct {
532  uint32_t sta_wep_key_index_present: 1;
533  uint32_t sta_auto_connect_present: 1;
534  uint32_t ap_wep_key_index_present: 1;
535  uint32_t ap_hidden_ssid_enable_present: 1;
536  uint32_t country_code_present: 1;
537  uint32_t sta_bandwidth_present: 1;
538  uint32_t sta_wireless_mode_present: 1;
539  uint32_t sta_listen_interval_present: 1;
540  uint32_t sta_power_save_mode_present: 1;
541  uint32_t ap_wireless_mode_present: 1;
542  uint32_t ap_dtim_interval_present: 1;
543  uint32_t reserved_bit: 21;
544  uint32_t reserved_word[3];
550  uint8_t country_code[4];
551  uint8_t sta_bandwidth;
559 
560 
563 typedef struct {
565  uint8_t wep_key_length[WIFI_NUMBER_WEP_KEYS];
568 
569 
572 typedef struct {
573  uint8_t ssid[WIFI_MAX_LENGTH_OF_SSID];
574  uint8_t ssid_length;
575  uint8_t mac_address[WIFI_MAC_ADDRESS_LENGTH];
576  uint8_t wireless_mode;
577  uint8_t channel;
578  uint8_t bandwidth;
579  uint8_t mcs;
580  uint8_t auth_mode;
581  uint8_t encrypt_mode;
583 
584 
587 typedef struct {
592 
593 
596 typedef struct {
597  uint8_t is_valid;
598  int8_t rssi;
599  uint8_t ssid[WIFI_MAX_LENGTH_OF_SSID];
600  uint8_t ssid_length;
601  uint8_t bssid[WIFI_MAC_ADDRESS_LENGTH];
602  uint8_t channel;
603  uint8_t central_channel;
607  bool is_hidden;
608  uint8_t bss_type;
609  uint16_t beacon_interval;
610  uint16_t capability_info;
613 
616 typedef struct {
618  struct _wifi_scan_list_t *next;
620 
623 typedef struct {
624  int8_t last_rssi;
625  uint8_t reserved;
626  int16_t average_rssi;
628 
629 
632 typedef union {
633  struct {
634  uint16_t mcs: 6;
635  uint16_t ldpc: 1;
636  uint16_t bandwidth: 2;
637  uint16_t short_gi: 1;
638  uint16_t stbc: 1;
639  uint16_t external_tx_beam_forming: 1;
640  uint16_t internal_tx_beam_forming: 1;
641  uint16_t mode: 3;
642  } field;
643  uint16_t word;
645 
648 typedef struct {
650  uint16_t reserved_one;
652  uint16_t reserved_two;
654  uint8_t mac_address[WIFI_MAC_ADDRESS_LENGTH];
655  uint8_t power_save_mode;
656  uint8_t bandwidth;
657  uint8_t keep_alive;
658  uint8_t reserved[3];
660 
663 typedef struct {
664  uint8_t key[16];
665  uint8_t rx_mic[8];
666  uint8_t tx_mic[8];
667  uint8_t tx_tsc[6];
668  uint8_t rx_tsc[6];
669  uint8_t cipher_type;
670  uint8_t key_length;
671  uint8_t bssid[6];
672  uint8_t type;
674 
677 typedef struct {
678  uint8_t first_channel;
679  uint8_t num_of_channel;
680  uint8_t max_tx_power;
681  uint8_t geography;
682  bool dfs_req;
684 
685 typedef struct {
686  uint8_t country_code[4];
687  uint8_t dfs_type;
689  wifi_channel_table_t channel_table[];
691 
692 
693 #ifdef MTK_WIFI_WPS_ENABLE
694 
697 typedef struct {
699  char manufacturer[WIFI_WPS_MAX_LENGTH_MANUFACTURER];
701  char model_number[WIFI_WPS_MAX_LENGTH_MODEL_NUMBER];
702  char serial_number[WIFI_WPS_MAX_LENGTH_SERIAL_NUMBER];
704 
708 typedef struct {
709  uint8_t ssid[WIFI_MAX_LENGTH_OF_SSID];
710  uint32_t ssid_len;
713  uint8_t key_index;
714  uint8_t key[WIFI_LENGTH_PASSPHRASE];
715  uint32_t key_length;
717 
718 #endif //end of MTK_WIFI_WPS_ENABLE
719 
734 void wifi_init(wifi_config_t *config, wifi_config_ext_t *config_ext);
735 
750 int32_t wifi_config_get_opmode(uint8_t *mode);
751 
770 int32_t wifi_config_set_opmode(uint8_t mode);
771 
794 int32_t wifi_config_get_mac_address(uint8_t port, uint8_t *address);
795 
813 int32_t wifi_config_get_ssid(uint8_t port, uint8_t *ssid, uint8_t *ssid_length);
814 
833 int32_t wifi_config_set_ssid(uint8_t port, uint8_t *ssid, uint8_t ssid_length);
834 
843 int32_t wifi_config_get_bssid(uint8_t *bssid);
844 
857 int32_t wifi_config_set_bssid(uint8_t *bssid);
858 
884 int32_t wifi_config_set_bandwidth(uint8_t port, uint8_t bandwidth);
885 
910 int32_t wifi_config_get_bandwidth(uint8_t port, uint8_t *bandwidth);
911 
932 int32_t wifi_config_set_channel(uint8_t port, uint8_t channel);
933 
951 int32_t wifi_config_get_channel(uint8_t port, uint8_t *channel);
952 
953 
969 int32_t wifi_config_get_wireless_mode(uint8_t port, wifi_phy_mode_t *mode);
970 
971 
988 int32_t wifi_config_set_wireless_mode(uint8_t port, wifi_phy_mode_t mode);
989 
990 
1877 int32_t wifi_config_set_country_code(wifi_country_code_t *wifi_country_code);
1878 
1888 int32_t wifi_config_get_country_code(wifi_country_code_t *wifi_country_code);
1889 
1958 int32_t wifi_config_get_country_region(uint8_t band, uint8_t *region);
1959 
2029 int32_t wifi_config_set_country_region(uint8_t band, uint8_t region);
2030 
2043 int32_t wifi_config_get_dtim_interval(uint8_t *interval);
2044 
2057 int32_t wifi_config_set_dtim_interval(uint8_t interval);
2058 
2070 int32_t wifi_config_get_listen_interval(uint8_t *interval);
2071 
2083 int32_t wifi_config_set_listen_interval(uint8_t interval);
2084 
2103 int32_t wifi_config_get_security_mode(uint8_t port, wifi_auth_mode_t *auth_mode, wifi_encrypt_type_t *encrypt_type);
2104 
2130 int32_t wifi_config_set_security_mode(uint8_t port, wifi_auth_mode_t auth_mode, wifi_encrypt_type_t encrypt_type);
2131 
2148 int32_t wifi_config_get_wpa_psk_key(uint8_t port, uint8_t *passphrase, uint8_t *passphrase_length);
2149 
2168 int32_t wifi_config_set_wpa_psk_key(uint8_t port, uint8_t *passphrase, uint8_t passphrase_length);
2169 
2185 int32_t wifi_config_get_pmk(uint8_t port, uint8_t *pmk);
2186 
2208 int32_t wifi_config_set_pmk(uint8_t port, uint8_t *pmk);
2209 
2224 int32_t wifi_config_get_wep_key(uint8_t port, wifi_wep_key_t *wep_keys);
2225 
2242 int32_t wifi_config_set_wep_key(uint8_t port, wifi_wep_key_t *wep_keys);
2243 
2255 int32_t wifi_config_reload_setting(void);
2256 
2272 int32_t wifi_config_register_rx_handler(wifi_rx_handler_t wifi_rx_handler);
2273 
2281 int32_t wifi_config_unregister_rx_handler(void);
2282 
2290 int32_t wifi_config_get_rx_filter(uint32_t *flag);
2291 
2312 int32_t wifi_config_set_rx_filter(uint32_t flag);
2313 
2330 int32_t wifi_config_get_smart_connection_filter(uint8_t *flag);
2331 
2348 int32_t wifi_config_set_smart_connection_filter(uint8_t flag);
2349 
2365 int32_t wifi_config_get_radio(uint8_t *on_off);
2366 
2381 int32_t wifi_config_set_radio(uint8_t on_off);
2382 
2391 int32_t wifi_connection_disconnect_ap(void);
2392 
2401 int32_t wifi_connection_disconnect_sta(uint8_t *address);
2402 
2418 int32_t wifi_connection_get_link_status(uint8_t *link_status);
2419 
2431 int32_t wifi_connection_scan_init(wifi_scan_list_item_t *ap_list, uint32_t max_count);
2432 
2440 int32_t wifi_connection_scan_deinit(void);
2441 
2475 int32_t wifi_connection_start_scan(uint8_t *ssid, uint8_t ssid_length, uint8_t *bssid, uint8_t scan_mode, uint8_t scan_option);
2476 
2482 int32_t wifi_connection_stop_scan(void);
2483 
2492 int32_t wifi_connection_parse_beacon(uint8_t *pbuf, uint32_t len, wifi_scan_list_item_t *ap_data);
2493 
2503 int32_t wifi_connection_get_sta_list(uint8_t *number, wifi_sta_list_t *sta_list);
2504 
2513 int32_t wifi_connection_get_max_sta_number(uint8_t *sta_number);
2514 
2524 int32_t wifi_connection_get_rssi(int8_t *rssi);
2525 
2546 
2556 int32_t wifi_connection_register_event_notifier(uint8_t event, wifi_event_handler_t notifier);
2557 
2568 
2578 int32_t wifi_connection_unregister_event_notifier(uint8_t event, wifi_event_handler_t notifier);
2579 
2580 #ifdef MTK_WIFI_PROFILE_ENABLE
2581 
2598 int32_t wifi_profile_set_opmode(uint8_t mode);
2599 
2614 int32_t wifi_profile_get_opmode(uint8_t *mode);
2615 
2634 int32_t wifi_profile_set_channel(uint8_t port, uint8_t channel);
2635 
2653 int32_t wifi_profile_get_channel(uint8_t port, uint8_t *channel);
2654 
2680 int32_t wifi_profile_set_bandwidth(uint8_t port, uint8_t bandwidth);
2681 
2705 int32_t wifi_profile_get_bandwidth(uint8_t port, uint8_t *bandwidth);
2706 
2722 int32_t wifi_profile_get_mac_address(uint8_t port, uint8_t *address);
2723 
2745 int32_t wifi_profile_set_mac_address(uint8_t port, uint8_t *address);
2746 
2766 int32_t wifi_profile_set_ssid(uint8_t port, uint8_t *ssid , uint8_t ssid_length);
2767 
2785 int32_t wifi_profile_get_ssid(uint8_t port, uint8_t *ssid, uint8_t *ssid_length);
2786 
2804 int32_t wifi_profile_set_wireless_mode(uint8_t port, wifi_phy_mode_t mode);
2805 
2821 int32_t wifi_profile_get_wireless_mode(uint8_t port, wifi_phy_mode_t *mode);
2822 
2841 int32_t wifi_profile_set_security_mode(uint8_t port, wifi_auth_mode_t auth_mode, wifi_encrypt_type_t encrypt_type);
2842 
2859 int32_t wifi_profile_get_security_mode(uint8_t port, wifi_auth_mode_t *auth_mode, wifi_encrypt_type_t *encrypt_type);
2860 
2881 int32_t wifi_profile_set_wpa_psk_key(uint8_t port, uint8_t *passphrase, uint8_t passphrase_length);
2882 
2899 int32_t wifi_profile_get_wpa_psk_key(uint8_t port, uint8_t *passphrase, uint8_t *passphrase_length);
2900 
2918 int32_t wifi_profile_set_pmk(uint8_t port, uint8_t *pmk);
2919 
2934 int32_t wifi_profile_get_pmk(uint8_t port, uint8_t *pmk);
2935 
2953 int32_t wifi_profile_set_wep_key(uint8_t port, wifi_wep_key_t *wep_keys);
2954 
2969 int32_t wifi_profile_get_wep_key(uint8_t port, wifi_wep_key_t *wep_keys);
2970 
2989 int32_t wifi_profile_get_country_region(uint8_t band, uint8_t *region);
2990 
3009 int32_t wifi_profile_set_country_region(uint8_t band, uint8_t region);
3010 
3018 int32_t wifi_profile_get_dtim_interval(uint8_t *interval);
3019 
3028 int32_t wifi_profile_set_dtim_interval(uint8_t interval);
3029 
3038 int32_t wifi_profile_get_listen_interval(uint8_t *interval);
3039 
3048 int32_t wifi_profile_set_listen_interval(uint8_t interval);
3049 
3064 int32_t wifi_profile_set_power_save_mode(uint8_t power_save_mode);
3065 
3079 int32_t wifi_profile_get_power_save_mode(uint8_t *power_save_mode);
3080 
3084 int32_t wifi_profile_commit_setting(char *profile_section);
3085 
3089 int32_t wifi_profile_get_profile(uint8_t port, wifi_profile_t *profile);
3090 
3091 #endif //MTK_WIFI_PROFILE_ENABLE
3092 
3093 #ifdef MTK_WIFI_WPS_ENABLE
3094 
3109 int32_t wifi_wps_config_get_pin_code(uint8_t port, uint8_t *pin_code);
3110 
3133 int32_t wifi_wps_connection_by_pbc(uint8_t port, uint8_t *bssid);
3134 
3157 int32_t wifi_wps_connection_by_pin(uint8_t port, uint8_t *bssid, uint8_t *pin_code);
3158 
3168 
3178 
3195 int32_t wifi_wps_config_set_auto_connection(bool auto_connection);
3196 
3209 int32_t wifi_wps_config_get_auto_connection(bool *auto_connection);
3210 
3211 #endif //end of MTK_WIFI_WPS_ENABLE
3212 
3222 int32_t wifi_connection_send_raw_packet(uint8_t *raw_packet, uint32_t length);
3223 
3224 
3225 
3226 
3227 #ifdef __cplusplus
3228 }
3229 #endif
3230 
3234 #endif /* __WIFI_API_H__ */
3235 
Rekey.
Definition: wifi_api.h:420
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...
uint8_t central_channel
The center channel in 40MHz bandwidth.
Definition: wifi_api.h:603
The dynamic PIN is shown on a display that is part of the device.
Definition: wifi_api.h:445
int32_t wifi_connection_stop_scan(void)
This function stops the Wi-Fi Scanning triggered by wifi_connection_start_scan(). ...
int32_t wifi_profile_get_wireless_mode(uint8_t port, wifi_phy_mode_t *mode)
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...
wifi_event_handler_t wifi_event_handler
This is only for compatibility purpose, so that applications implemented with an earlier version of t...
Definition: wifi_api.h:472
wps_device_password_id_t
This enumeration of device password ID is used for WPS.
Definition: wifi_api.h:416
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 f...
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.
11, 11n-only with 5GHz band.
Definition: wifi_api.h:373
uint8_t ssid_length
The length of the SSID.
Definition: wifi_api.h:509
wps_config_method_t
This enumeration lists the configuration methods supported by the Enrollee or Registrar.
Definition: wifi_api.h:432
Not supported.
Definition: wifi_api.h:340
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.
uint8_t dfs_type
Not supported.
Definition: wifi_api.h:687
uint8_t geography
Not supported.
Definition: wifi_api.h:681
The NFC tag is integrated in the device.
Definition: wifi_api.h:438
#define WIFI_WPS_MAX_LENGTH_DEVICE_NAME
The length of device information used for WPS.
Definition: wifi_api.h:266
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.
int32_t wifi_profile_get_dtim_interval(uint8_t *interval)
uint8_t max_tx_power
The maximum transmit power in the single channel table, the unit is dBm.
Definition: wifi_api.h:680
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...
wps_config_method_t configuration_methods
Indicates AP's capability to support WPS methods.
Definition: wifi_api.h:590
2, WEP128 cipher.
Definition: wifi_api.h:381
uint8_t mcs
Defines the packet data rate.
Definition: wifi_api.h:579
This structure is the Wi-Fi configuration for initialization in STA mode.
Definition: wifi_api.h:495
uint8_t key_index
The WEP key inndex.
Definition: wifi_api.h:713
Secure event, mainly processed in supplicant.
Definition: wifi_api.h:286
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. ...
WPS PBC available on a physical push button of the device.
Definition: wifi_api.h:443
int32_t wifi_profile_set_bandwidth(uint8_t port, uint8_t bandwidth)
WIFI_POWER_SAVING_MODE_OFF is a power saving mode that keeps the radio powered up continuously to ens...
Definition: wifi_api.h:406
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...
10, BIP cipher.
Definition: wifi_api.h:389
uint8_t wireless_mode
Please refer to the definition of wifi_phy_mode_t.
Definition: wifi_api.h:576
A dynamic PIN from a display.
Definition: wifi_api.h:436
4, 2.4GHz band.
Definition: wifi_api.h:366
Not supported.
Definition: wifi_api.h:347
This structure is the Wi-Fi configuration for initialization in AP mode.
Definition: wifi_api.h:507
int32_t wifi_profile_get_profile(uint8_t port, wifi_profile_t *profile)
3, TKIP cipher.
Definition: wifi_api.h:382
7, CKIP152 cipher.
Definition: wifi_api.h:386
wifi_phy_mode_t sta_wireless_mode
The wireless mode setting for STA.
Definition: wifi_api.h:552
No encryption.
Definition: wifi_api.h:337
int32_t wifi_config_get_opmode(uint8_t *mode)
This function receives the wireless operation mode of the Wi-Fi driver.
uint8_t reserved
Reserved.
Definition: wifi_api.h:625
uint8_t password_length
The length of the password.
Definition: wifi_api.h:511
Not supported.
Definition: wifi_api.h:321
int32_t wifi_wps_config_get_device_info(wifi_wps_device_info_t *device_info)
This function gets the WPS device information.
int32_t wifi_profile_set_dtim_interval(uint8_t interval)
int32_t wifi_profile_set_listen_interval(uint8_t interval)
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...
int32_t(* wifi_event_handler_t)(wifi_event_t event, uint8_t *payload, uint32_t length)
This defines the Wi-Fi event handler.
Definition: wifi_api.h:466
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...
7, 2.4GHz band.
Definition: wifi_api.h:369
wifi_bandwidth_ext_t
This enumeration defines 40MHz bandwidth extension.
Definition: wifi_api.h:397
5, CKIP64 cipher.
Definition: wifi_api.h:384
wifi_auth_mode_t
This enumeration defines the wireless authentication mode to indicate the Wi-Fi device’s authenticat...
Definition: wifi_api.h:319
Not supported.
Definition: wifi_api.h:351
#define WIFI_MAX_LENGTH_OF_SSID
The maximum length of SSID.
Definition: wifi_api.h:130
WPS PBC supports software user interface.
Definition: wifi_api.h:442
uint8_t ap_dtim_interval
The DTIM interval setting for AP.
Definition: wifi_api.h:556
uint16_t beacon_interval
Indicates the beacon interval.
Definition: wifi_api.h:609
Pushbutton.
Definition: wifi_api.h:421
Report the expected packet frame.
Definition: wifi_api.h:290
int32_t wifi_profile_get_listen_interval(uint8_t *interval)
uint32_t key_length
Key length.
Definition: wifi_api.h:715
WPA2_PSK.
Definition: wifi_api.h:327
int32_t wifi_connection_register_event_handler(wifi_event_t event, wifi_event_handler_t handler)
This function registers the Wi-Fi event handler.
2, 5GHz band.
Definition: wifi_api.h:364
int32_t wifi_config_get_rx_filter(uint32_t *flag)
This function gets the Wi-Fi RX filter used in the Wi-Fi driver.
uint8_t bssid_present
The BSSID is present if it is set to 1.
Definition: wifi_api.h:498
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.
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...
Not supported.
Definition: wifi_api.h:352
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...
wifi_security_cipher_suits_t
This enumeration defines wireless security cipher suits.
Definition: wifi_api.h:378
uint16_t reserved_one
For padding.
Definition: wifi_api.h:650
int32_t wifi_connection_get_rssi(int8_t *rssi)
This function gets the RSSI of the connected AP.
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 por...
int32_t wifi_profile_set_mac_address(uint8_t port, uint8_t *address)
bit 12 Enables report frames.
Definition: wifi_api.h:306
Open mode.
Definition: wifi_api.h:320
TKIP or AES mix.
Definition: wifi_api.h:348
uint8_t sta_auto_connect
Set to 1 to enable the STA to automatically connect to the target AP after the initialization.
Definition: wifi_api.h:547
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.
AES encryption.
Definition: wifi_api.h:345
int32_t wifi_profile_get_opmode(uint8_t *mode)
wps_device_password_id_t device_password_id
Indicates AP WPS status, only when selected_registrar is 1, this parameter will take effect...
Definition: wifi_api.h:589
bit 2 A reserved bit, not used.
Definition: wifi_api.h:300
bool dfs_req
0: No DFS request, 1: DFS request.
Definition: wifi_api.h:682
Definition: wifi_api.h:685
int32_t wifi_wps_config_set_device_info(wifi_wps_device_info_t *device_info)
This function sets the WPS device information.
bit 17 Drops not my BSSID frames.
Definition: wifi_api.h:311
6, 11n-only with 2.4GHz band.
Definition: wifi_api.h:368
bit 15 Drops RTS frames.
Definition: wifi_api.h:309
#define WIFI_WPS_MAX_LENGTH_MANUFACTURER
The maximum length of manufacturer's name.
Definition: wifi_api.h:267
0, No cipher.
Definition: wifi_api.h:379
9, 2.4GHz band.
Definition: wifi_api.h:371
#define WIFI_MAX_WEP_KEY_LENGTH
The maximum length of each WEP key.
Definition: wifi_api.h:259
Not supported.
Definition: wifi_api.h:325
Not supported.
Definition: wifi_api.h:328
8, SMS4 cipher.
Definition: wifi_api.h:387
int32_t wifi_profile_set_ssid(uint8_t port, uint8_t *ssid, uint8_t ssid_length)
No encryption.
Definition: wifi_api.h:338
int8_t rssi
Records the RSSI value when probe response is received.
Definition: wifi_api.h:598
int32_t(* wifi_rx_handler_t)(uint8_t *payload, uint32_t length)
This defines the 802.11 RX raw packet handler.
Definition: wifi_api.h:482
bit 19 Drops different BSSID TIM (Traffic Indication Map) Broadcast frame.
Definition: wifi_api.h:313
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 wi...
int32_t wifi_profile_get_bandwidth(uint8_t port, uint8_t *bandwidth)
Definition: wifi_api.h:434
Not supported.
Definition: wifi_api.h:350
1, 2.4GHz band.
Definition: wifi_api.h:363
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 f...
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...
int32_t wifi_profile_get_power_save_mode(uint8_t *power_save_mode)
wifi_auth_mode_t auth_mode
Please refer to the definition of wifi_auth_mode_t.
Definition: wifi_api.h:605
int32_t wifi_config_set_pmk(uint8_t port, uint8_t *pmk)
wifi_auth_mode_t auth_mode
Please refer to the definition of wifi_auth_mode_t.
Definition: wifi_api.h:711
bit 1 Drops the FCS error frames.
Definition: wifi_api.h:299
wifi_ap_config_t ap_config
The configurations for the AP.
Definition: wifi_api.h:525
int32_t wifi_connection_register_event_notifier(uint8_t event, wifi_event_handler_t notifier)
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. ...
Mixture mode.
Definition: wifi_api.h:329
int32_t wifi_connection_disconnect_sta(uint8_t *address)
This function disconnects specific station's connection, and takes effect immediately.
uint8_t cipher_type
0:none, 1:WEP64, 2:WEP128, 3:TKIP, 4:AES, 5:CKIP64, 6:CKIP128.
Definition: wifi_api.h:669
int32_t wifi_config_reload_setting(void)
This function informs the wpa_supplicant to reload the configuration and applies the configuration se...
Machine specified.
Definition: wifi_api.h:419
This structure provides the detailed cipher information.
Definition: wifi_api.h:663
Not supported.
Definition: wifi_api.h:342
bit 6 Drops broadcast frame.
Definition: wifi_api.h:304
bit 18 Drops not unicast to me frames.
Definition: wifi_api.h:312
wifi_rx_filter_t
This enumeration defines the RX filter register's bitmap.
Definition: wifi_api.h:297
#define WIFI_WPS_MAX_LENGTH_MODEL_NAME
The maximum length of module name.
Definition: wifi_api.h:268
wifi_scan_list_item_t ap_data
The information about an AP obtained through the scan result is stored in this data member...
Definition: wifi_api.h:617
bool is_hidden
Indicates the SSID is hidden or not.
Definition: wifi_api.h:607
struct _wifi_scan_list_t * next
Next item in the list.
Definition: wifi_api.h:618
uint8_t power_save_mode
Station power save mode.
Definition: wifi_api.h:655
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.
wifi_event_t
This enumeration defines the supported events generated by the Wi-Fi driver.
Definition: wifi_api.h:282
int32_t wifi_profile_get_country_region(uint8_t band, uint8_t *region)
Not supported.
Definition: wifi_api.h:341
uint8_t num_of_channel
The number of channels in the single channel table.
Definition: wifi_api.h:679
8, 5GHz band.
Definition: wifi_api.h:370
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_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 por...
uint8_t bss_type
Indicates the type of BSS.
Definition: wifi_api.h:608
wifi_bandwidth_ext_t bandwidth_ext
The bandwidth extension.
Definition: wifi_api.h:516
5, both 2.4G and 5G band.
Definition: wifi_api.h:367
uint8_t bandwidth
Negotiation bandwidth.
Definition: wifi_api.h:656
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.
uint8_t sta_bandwidth
The bandwidth setting for STA.
Definition: wifi_api.h:551
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...
bool is_wps_supported
Indicates whether WPS is supported or not.
Definition: wifi_api.h:604
4, AES cipher.
Definition: wifi_api.h:383
int8_t last_rssi
The latest received RSSI.
Definition: wifi_api.h:624
#define WIFI_NUMBER_WEP_KEYS
The group number of WEP keys.
Definition: wifi_api.h:258
wifi_encrypt_type_t
This enumeration defines the wireless encryption type to indicate the Wi-Fi device’s encryption attr...
Definition: wifi_api.h:334
Device is capable of entering a PIN.
Definition: wifi_api.h:441
wifi_wps_element_t wps_element
Please refer to the definition of wifi_wps_element_t.
Definition: wifi_api.h:611
uint8_t num_of_channel_table
Number of channel table.
Definition: wifi_api.h:688
int32_t wifi_profile_get_pmk(uint8_t port, uint8_t *pmk)
int32_t wifi_profile_set_wireless_mode(uint8_t port, wifi_phy_mode_t mode)
40MHz up.
Definition: wifi_api.h:398
Wi-Fi profile entity.
Definition: wifi_api.h:572
Not supported.
Definition: wifi_api.h:323
uint8_t first_channel
The first channel in the single channel table.
Definition: wifi_api.h:678
int32_t wifi_profile_get_mac_address(uint8_t port, uint8_t *address)
uint32_t ssid_len
The length of Registrar network SSID.
Definition: wifi_api.h:710
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...
uint16_t reserved_two
For padding.
Definition: wifi_api.h:652
uint8_t keep_alive
Keep alive status.
Definition: wifi_api.h:657
wifi_rssi_sample_t rssi_sample
The RSSI sample.
Definition: wifi_api.h:653
Connection has failed.
Definition: wifi_api.h:291
wifi_phy_mode_t
This enumeration defines the wireless physical mode.
Definition: wifi_api.h:361
The dynamic PIN is displayed through a remote user interface, such as an HTML page.
Definition: wifi_api.h:444
9, WEP152 cipher.
Definition: wifi_api.h:388
wifi_power_saving_mode_t
This enumeration defines three power saving modes.
Definition: wifi_api.h:405
int32_t wifi_profile_set_pmk(uint8_t port, uint8_t *pmk)
bit 0 Drops the STBC beacon/BC/MC frames.
Definition: wifi_api.h:298
#define WIFI_WPS_MAX_LENGTH_SERIAL_NUMBER
The maximum length of serial number.
Definition: wifi_api.h:270
wifi_phy_mode_t ap_wireless_mode
The wireless mode setting for AP.
Definition: wifi_api.h:555
int32_t wifi_wps_config_get_auto_connection(bool *auto_connection)
This function gets auto connection configuration.
User specified.
Definition: wifi_api.h:418
wifi_auth_mode_t auth_mode
The authentication mode.
Definition: wifi_api.h:512
This structure defines the list of scanned APs with their corresponding information.
Definition: wifi_api.h:596
int32_t wifi_profile_set_channel(uint8_t port, uint8_t channel)
uint8_t ssid_length
Length of the SSID.
Definition: wifi_api.h:600
#define WIFI_LENGTH_PASSPHRASE
The maximum length of passphrase used in WPA-PSK and WPA2-PSK encryption types.
Definition: wifi_api.h:160
uint8_t channel
The channel used.
Definition: wifi_api.h:577
12, TKIP_NO_MIC cipher.
Definition: wifi_api.h:391
uint8_t password_length
The length of the password.
Definition: wifi_api.h:501
int32_t wifi_connection_scan_deinit(void)
This function deinitializes the scan table.
bit 13 Drops reserved definition control frames.
Definition: wifi_api.h:307
int32_t wifi_config_set_rx_filter(uint32_t flag)
This function sets the Wi-Fi RX filter used in the Wi-Fi driver.
int32_t wifi_profile_get_channel(uint8_t port, uint8_t *channel)
int32_t wifi_profile_set_power_save_mode(uint8_t power_save_mode)
uint8_t sta_listen_interval
The listening interval setting for STA.
Definition: wifi_api.h:553
uint16_t capability_info
The Capability Information field contains a number of subfields that are used to indicate requested o...
Definition: wifi_api.h:610
uint8_t wep_tx_key_index
Default key index for TX frames using WEP.
Definition: wifi_api.h:566
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...
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.
wifi_power_saving_mode_t sta_power_save_mode
The power saving mode setting for STA.
Definition: wifi_api.h:554
Connected event.
Definition: wifi_api.h:283
int32_t wifi_connection_unregister_event_handler(wifi_event_t event, wifi_event_handler_t handler)
This function unregisters Wi-Fi event handler.
WEP encryption type.
Definition: wifi_api.h:336
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 f...
bit 5 Drops multicast frame.
Definition: wifi_api.h:303
uint8_t key_length
Key length for each key, 0: entry is invalid.
Definition: wifi_api.h:670
Disconnected event.
Definition: wifi_api.h:285
#define WIFI_MAC_ADDRESS_LENGTH
MAC address length.
Definition: wifi_api.h:134
1, WEP64 cipher.
Definition: wifi_api.h:380
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 wi...
int32_t wifi_profile_set_opmode(uint8_t mode)
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.
uint8_t auth_mode
Wi-Fi authentication mode, please refer to the definition of wifi_auth_mode_t.
Definition: wifi_api.h:580
11, WAPI cipher.
Definition: wifi_api.h:390
Not supported.
Definition: wifi_api.h:322
uint8_t bandwidth
The bandwidth that is either WIFI_IOT_COMMAND_CONFIG_BANDWIDTH_20MHZ or WIFI_IOT_COMMAND_CONFIG_BANDW...
Definition: wifi_api.h:515
uint8_t sta_wep_key_index
The WEP key index for STA.
Definition: wifi_api.h:546
Scan completed event.
Definition: wifi_api.h:284
uint8_t channel
The channel.
Definition: wifi_api.h:514
uint8_t encrypt_mode
Wi-Fi encryption mode, please refer to the definition of wifi_encrypt_type_t.
Definition: wifi_api.h:581
TKIP or AES mix.
Definition: wifi_api.h:349
uint8_t type
Indicates the type (pairwise or group) when reporting a MIC error.
Definition: wifi_api.h:672
Wi-Fi extention configuration for initialization.
Definition: wifi_api.h:531
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. ...
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.
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. ...
int32_t wifi_profile_set_security_mode(uint8_t port, wifi_auth_mode_t auth_mode, wifi_encrypt_type_t encrypt_type)
10, both 2.4G and 5G band.
Definition: wifi_api.h:372
bit 14 Drops CTS frames.
Definition: wifi_api.h:308
Sends notification, if beacon or probe request is received.
Definition: wifi_api.h:287
uint8_t ap_hidden_ssid_enable
Set to 1 to enable the hidden SSID in the beacon and probe response packets.
Definition: wifi_api.h:549
int32_t wifi_profile_set_wpa_psk_key(uint8_t port, uint8_t *passphrase, uint8_t passphrase_length)
bit 3 Drops the version field of Frame Control field.
Definition: wifi_api.h:301
int32_t wifi_connection_disconnect_ap(void)
This function disconnects the current connection from AP.
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.
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.
int32_t wifi_profile_get_ssid(uint8_t port, uint8_t *ssid, uint8_t *ssid_length)
void wifi_init(wifi_config_t *config, wifi_config_ext_t *config_ext)
This function initializes the Wi-Fi module.
uint8_t is_valid
Indicates whether the scanned item is valid.
Definition: wifi_api.h:597
40MHz below.
Definition: wifi_api.h:399
int32_t wifi_wps_connection_by_pin(uint8_t port, uint8_t *bssid, uint8_t *pin_code)
This function triggers the WPS PIN process.
int32_t wifi_config_get_radio(uint8_t *on_off)
This function gets the radio status of the Wi-Fi driver.
bit 4 Drops the probe request frame.
Definition: wifi_api.h:302
uint8_t channel
The channel used.
Definition: wifi_api.h:602
int32_t wifi_config_set_country_code(wifi_country_code_t *wifi_country_code)
Set the country code.
Wi-Fi WEP keys.
Definition: wifi_api.h:563
int32_t wifi_profile_commit_setting(char *profile_section)
bit 16 Drops duplicate frames.
Definition: wifi_api.h:310
6, CKIP128 cipher.
Definition: wifi_api.h:385
8-digit static PIN.
Definition: wifi_api.h:435
wifi_transmit_setting_t last_rx_rate
The latest RX rate.
Definition: wifi_api.h:651
wifi_sta_config_t sta_config
The configurations for the STA.
Definition: wifi_api.h:524
wifi_transmit_setting_t last_tx_rate
The latest TX rate.
Definition: wifi_api.h:649
bool selected_registrar
Indicates whether AP WPS is triggered and in progress.
Definition: wifi_api.h:588
AES encryption.
Definition: wifi_api.h:346
uint8_t bandwidth
The bandwidth is 20MHz or 40MHz.
Definition: wifi_api.h:578
bit 11 Drops beacon frame.
Definition: wifi_api.h:305
WPS PBC supports either a physical or a virtual pushbutton.
Definition: wifi_api.h:440
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...
TKIP encryption.
Definition: wifi_api.h:344
0, 2.4GHz band.
Definition: wifi_api.h:362
Registrar specified.
Definition: wifi_api.h:422
WIFI_POWER_SAVING_MODE_LEGACY: The access point buffers incoming messages for the radio...
Definition: wifi_api.h:407
int32_t wifi_profile_get_wpa_psk_key(uint8_t port, uint8_t *passphrase, uint8_t *passphrase_length)
Not supported.
Definition: wifi_api.h:339
The RSSI sample is a measurement of the power in a received radio signal.
Definition: wifi_api.h:623
int32_t wifi_connection_unregister_event_notifier(uint8_t event, wifi_event_handler_t notifier)
wifi_encrypt_type_t encrypt_type
Please refer to the definition of wifi_encrypt_type_t.
Definition: wifi_api.h:606
int32_t wifi_profile_set_country_region(uint8_t band, uint8_t region)
int32_t wifi_config_unregister_rx_handler(void)
This function unregisters the handler to receive 802.11 raw packets from the network processor...
TKIP encryption.
Definition: wifi_api.h:343
Not supported.
Definition: wifi_api.h:326
int32_t wifi_config_set_opmode(uint8_t mode)
This function sets the Wi-Fi operation mode and it takes effect immediately.
uint8_t ssid_length
The length of the SSID.
Definition: wifi_api.h:497
Represents the credentials used for WPS.
Definition: wifi_api.h:708
WPA_PSK.
Definition: wifi_api.h:324
int32_t wifi_wps_connection_by_pbc(uint8_t port, uint8_t *bssid)
This function triggers a WPS PBC process.
The NFC tag is used for WPS.
Definition: wifi_api.h:437
int32_t wifi_profile_get_wep_key(uint8_t port, wifi_wep_key_t *wep_keys)
Default value or use PIN if selected_registrar is true.
Definition: wifi_api.h:417
3, both 2.4G and 5G band.
Definition: wifi_api.h:365
The device contains an NFC interface.
Definition: wifi_api.h:439
uint8_t ssid_length
The length of SSID.
Definition: wifi_api.h:574
WEP encryption type.
Definition: wifi_api.h:335
Initialization complete event.
Definition: wifi_api.h:289
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 ...
uint8_t ap_wep_key_index
The WEP key index for AP.
Definition: wifi_api.h:548
This defines the WPS element.
Definition: wifi_api.h:587
Specifies the Wi-Fi transmitter settings, including MCS, LDPC, bandwidth, short-GI algorithms...
Definition: wifi_api.h:632
This structure defines a link to the scanned AP list.
Definition: wifi_api.h:616
Specifies the Wi-Fi station items, including the Wi-Fi transmitter settings, the RSSI sample...
Definition: wifi_api.h:648
bit 20 Drops the NDPA or not.
Definition: wifi_api.h:314
Represents the device information used for WPS.
Definition: wifi_api.h:697
int16_t average_rssi
8 times of the average RSSI.
Definition: wifi_api.h:626
int32_t wifi_profile_set_wep_key(uint8_t port, wifi_wep_key_t *wep_keys)
uint8_t opmode
The operation mode.
Definition: wifi_api.h:523
WIFI_POWER_SAVING_MODE_FAST is a power saving mode that switches between power saving and WIFI_POWER_...
Definition: wifi_api.h:408
Definition: wifi_api.h:433
#define WIFI_WPS_MAX_LENGTH_MODEL_NUMBER
The maximum length of module number.
Definition: wifi_api.h:269
int32_t wifi_config_set_radio(uint8_t on_off)
This function sets the radio status of the Wi-Fi driver.
This structures provide the country code information.
Definition: wifi_api.h:677
uint16_t word
Defines the length of the union data.
Definition: wifi_api.h:643
Wi-Fi configuration for initialization.
Definition: wifi_api.h:522
wifi_encrypt_type_t encrypt_type
Please refer to the definition of wifi_encrypt_type_t.
Definition: wifi_api.h:712
wifi_encrypt_type_t encrypt_type
The encryption mode.
Definition: wifi_api.h:513
Credential event, sends notification when WPS process is complete.
Definition: wifi_api.h:288