|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "td_type.h"#include "td_base.h"#include "soc_wifi_api.h"#include "service_wifi_api.h"#include "config_ssid.h"#include "soc_osal.h"#include <stdbool.h>

结构体 | |
| struct | wpa_assoc_request |
| struct | ext_scan_record |
| struct | wpa_scan_params |
| struct | wifi_ap_opt_set |
| struct | wifi_mesh_opt_set |
| struct | wifi_sta_opt_set |
| struct | wifi_reconnect_set |
| struct | ext_wifi_dev |
| struct | hostapd_conf |
| struct | ext_sta_info |
| struct | ext_wifi_status_sem |
类型定义 | |
| typedef enum ext_iftype | wifi_iftype |
| typedef struct hostapd_conf | wifi_softap_config |
函数 | |
| void | wifi_new_task_event_cb (const ext_wifi_event *event_cb) |
| void | los_free_wifi_dev (struct ext_wifi_dev *wifi_dev) |
| int | los_wpa_ssid_config_set (struct wpa_ssid *ssid, const char *name, const char *value) |
| int | los_freq_to_channel (int freq, unsigned int *channel) |
| struct ext_wifi_dev * | los_get_wifi_dev_by_name (const char *ifname) |
| struct ext_wifi_dev * | los_get_wifi_dev_by_iftype (ext_wifi_iftype iftype) |
| struct ext_wifi_dev * | los_get_wifi_dev_by_priv (const void *ctx) |
| int | los_count_wifi_dev_in_use (void) |
| struct ext_wifi_dev * | wpa_get_other_existed_wpa_wifi_dev (const void *priv) |
| int | los_wpa_scan (struct wpa_scan_params *params, ext_wifi_iftype iftype) |
| int | wifi_scan (ext_wifi_iftype iftype, bool is_mesh, const ext_wifi_scan_params *sp) |
| int | wifi_scan_result_bssid_parse (char **starttmp, void *buf, size_t *reply_len) |
| int | wifi_scan_result_freq_parse (char **starttmp, void *buf, size_t *reply_len) |
| int | wifi_scan_result_rssi_parse (char **starttmp, void *buf, size_t *reply_len) |
| void | wifi_scan_result_base_flag_parse (const char *starttmp, void *buf) |
| int | wifi_scan_result_filter_parse (const void *buf) |
| int | wifi_scan_result_ssid_parse (char **starttmp, void *buf, size_t *reply_len) |
| int | wifi_scan_result (ext_wifi_iftype iftype) |
| int | chan_to_freq (unsigned char chan) |
| int | addr_precheck (const unsigned char *addr) |
| int | try_set_lock_flag (void) |
| void | clr_lock_flag (void) |
| int | is_lock_flag_off (void) |
| int | is_ap_mesh_or_p2p_on (void) |
| int | is_hex_string (const char *data, size_t len) |
| int | wifi_add_iface (const struct ext_wifi_dev *wifi_dev) |
| int | wifi_wpa_start (const struct ext_wifi_dev *wifi_dev) |
| int | wifi_remove_iface (struct ext_wifi_dev *wifi_dev) |
| int | wifi_wpa_stop (ext_wifi_iftype iftype) |
| int | los_set_wifi_dev (struct ext_wifi_dev *wifi_dev) |
| struct ext_wifi_dev * | wifi_dev_get (ext_wifi_iftype iftype) |
| Get wifi device config.CNcomment:获取wifi device的配置.CNend | |
| struct ext_wifi_dev * | wifi_dev_creat (ext_wifi_iftype iftype, protocol_mode_enum mode) |
| int | wifi_channel_check (unsigned char chan) |
| void | wpa_event_task_free (void) |
变量 | |
| int | g_fast_connect_flag |
| int | g_fast_connect_scan_flag |
| int | g_connecting_flag |
| wpa_rm_network | g_wpa_rm_network |
| int | g_usr_scanning_flag |
| size_t | g_result_len |
| char * | g_scan_result_buf |
| struct wifi_reconnect_set | g_reconnect_set |
| struct wifi_sta_opt_set | g_sta_opt_set |
| struct ext_scan_record | g_scan_record |
| struct wpa_ssid * | g_connecting_ssid |
| uapi_wifi_event_cb | g_wpa_event_cb |
| ext_wifi_scan_no_save_cb | g_raw_scan_cb |
| unsigned int | g_wpa_event |
| unsigned int | g_softap_event |
| unsigned int | g_sta_num |
| ext_wifi_status * | g_sta_status |
| unsigned int | g_mesh_get_sta_flag |
| unsigned char | g_quick_conn_psk [EXT_WIFI_STA_PSK_LEN] |
| unsigned int | g_quick_conn_psk_flag |
| struct wifi_ap_opt_set | g_ap_opt_set |
| struct hostapd_data * | g_hapd |
| ext_wifi_ap_sta_info * | g_ap_sta_info |
| int | g_mesh_flag |
| int | g_mesh_sta_flag |
| int | g_scan_flag |
| struct hostapd_conf | g_global_conf |
| unsigned char | g_ssid_prefix_flag |
| struct ext_wifi_dev * | g_wifi_dev [2] |
| #define MAX_DRIVER_NAME_LEN 16 |
| #define MAX_SSID_LEN 32 |
| #define MESH_AP 1 |
| #define MESH_STA 0 |
| #define SAE_GROUPS_MAX_NUM 4 |
| #define WAPI_MAX_KEY_LEN 65 |
| #define WIFI_EVENT_DELAY_5S 5000 |
| #define WPA_24G_CHANNEL_NUMS 14 |
| #define WPA_24G_FREQ_TXT_LEN 4 |
| #define WPA_ALIGN_SIZE 4 |
| #define WPA_AP_MAX_BEACON 1000 |
| #define WPA_AP_MAX_DTIM 30 |
| #define WPA_AP_MIN_BEACON 25 |
| #define WPA_AP_MIN_DTIM 1 |
| #define WPA_BASE_WIFI_DEV_NUM 1 |
| #define WPA_BIT0 (1U << 0) |
| #define WPA_BIT1 (1U << 1) |
| #define WPA_BIT10 (1U << 10) |
| #define WPA_BIT11 (1U << 11) |
| #define WPA_BIT12 (1U << 12) |
| #define WPA_BIT13 (1U << 13) |
| #define WPA_BIT14 (1U << 14) |
| #define WPA_BIT15 (1U << 15) |
| #define WPA_BIT16 (1U << 16) |
| #define WPA_BIT17 (1U << 17) |
| #define WPA_BIT18 (1U << 18) |
| #define WPA_BIT19 (1U << 19) |
| #define WPA_BIT2 (1U << 2) |
| #define WPA_BIT20 (1U << 20) |
| #define WPA_BIT21 (1U << 21) |
| #define WPA_BIT22 (1U << 22) |
| #define WPA_BIT23 (1U << 23) |
| #define WPA_BIT24 (1U << 24) |
| #define WPA_BIT26 (1U << 26) |
| #define WPA_BIT27 (1U << 27) |
| #define WPA_BIT28 (1U << 28) |
| #define WPA_BIT29 (1U << 29) |
| #define WPA_BIT3 (1U << 3) |
| #define WPA_BIT30 (1U << 30) |
| #define WPA_BIT4 (1U << 4) |
| #define WPA_BIT5 (1U << 5) |
| #define WPA_BIT6 (1U << 6) |
| #define WPA_BIT7 (1U << 7) |
| #define WPA_BIT8 (1U << 8) |
| #define WPA_BIT9 (1U << 9) |
| #define WPA_CHANNEL_MAX_JAPAN 14 |
| #define WPA_CHANNEL_MAX_OTHERS 13 |
| #define WPA_CHANNEL_MAX_USA 11 |
| #define WPA_CMD_BSSID_LEN 32 |
| #define WPA_CMD_BUF_SIZE 64 |
| #define WPA_CMD_MIN_SIZE 16 |
| #define WPA_COUNTRY_CODE_JAPAN "JP" |
| #define WPA_COUNTRY_CODE_LEN 3 |
| #define WPA_COUNTRY_CODE_USA "US" |
| #define WPA_COUNTRY_CODE_ZZ "ZZ" |
| #define WPA_CTRL_CMD_LEN 256 |
| #define WPA_DOUBLE_IFACE_WIFI_DEV_NUM 2 |
| #define WPA_EVENT_ADD_IFACE_ERROR WPA_BIT15 |
| #define WPA_EVENT_ADD_IFACE_OK WPA_BIT14 |
| #define WPA_EVENT_AP_DEAUTH_FAIL WPA_BIT1 |
| #define WPA_EVENT_AP_DEAUTH_OK WPA_BIT2 |
| #define WPA_EVENT_AP_SHOW_STA_ERROR WPA_BIT4 |
| #define WPA_EVENT_AP_SHOW_STA_OK WPA_BIT3 |
| #define WPA_EVENT_AP_STOP_OK WPA_BIT5 |
| #define WPA_EVENT_GET_SCAN_RESULT_ERROR WPA_BIT2 |
| #define WPA_EVENT_GET_SCAN_RESULT_OK WPA_BIT1 |
| #define WPA_EVENT_P2P_GET_PEER_ERROR WPA_BIT4 |
| #define WPA_EVENT_P2P_GET_PEER_OK WPA_BIT3 |
| #define WPA_EVENT_P2P_GET_PERSISTENT_GROUP_ERROR WPA_BIT6 |
| #define WPA_EVENT_P2P_GET_PERSISTENT_GROUP_OK WPA_BIT5 |
| #define WPA_EVENT_P2P_GET_STATUS_ERROR WPA_BIT2 |
| #define WPA_EVENT_P2P_GET_STATUS_OK WPA_BIT1 |
| #define WPA_EVENT_QUICK_CONNECT_ERROR WPA_BIT10 |
| #define WPA_EVENT_QUICK_CONNECT_OK WPA_BIT9 |
| #define WPA_EVENT_REMOVE_IFACE_FLAG WPA_BIT16 |
| #define WPA_EVENT_SCAN_OK WPA_BIT11 |
| #define WPA_EVENT_SCAN_RESULT_CLEAR_OK WPA_BIT17 |
| #define WPA_EVENT_SCAN_RESULT_FREE_OK WPA_BIT3 |
| #define WPA_EVENT_STA_RM_NETWORK_OK WPA_BIT6 |
| #define WPA_EVENT_STA_STATUS_FAIL WPA_BIT8 |
| #define WPA_EVENT_STA_STATUS_OK WPA_BIT7 |
| #define WPA_EVENT_STA_STOP_ERROR WPA_BIT5 |
| #define WPA_EVENT_STA_STOP_OK WPA_BIT4 |
| #define WPA_EVENT_STA_WNM_BSS_QUERY WPA_BIT18 |
| #define WPA_EVENT_STA_WNM_NOTIFY WPA_BIT19 |
| #define WPA_EVENT_WPA_START_ERROR WPA_BIT13 |
| #define WPA_EVENT_WPA_START_OK WPA_BIT12 |
| #define WPA_EXTERNED_SSID_LEN (WPA_MAX_SSID_LEN * 5) |
| #define WPA_HT_CAPA_LEN 20 |
| #define WPA_INT_TO_CHAR_LEN 11 |
| #define WPA_INVITE_ADDR_LEN 23 |
| #define WPA_INVITE_PERSISTENT_ID 13 |
| #define WPA_MAX_ESSID_LEN WPA_MAX_SSID_LEN |
| #define WPA_MAX_FREQ_LEN 10 |
| #define WPA_MAX_KEY_LEN 64 |
| #define WPA_MAX_NUM_STA 8 |
| #define WPA_MAX_REKEY_TIME 86400 |
| #define WPA_MAX_SSID_KEY_INPUT_LEN 128 |
| #define WPA_MAX_SSID_LEN 32 |
| #define WPA_MAX_TRY_FREQ_SCAN_CNT 3 |
| #define WPA_MAX_WIFI_DEV_NUM 2 |
| #define WPA_MIN | ( | x, | |
| y | |||
| ) | (((x) < (y)) ? (x) : (y)) |
| #define WPA_MIN_FREQ_LEN 6 |
| #define WPA_MIN_KEY_LEN 8 |
| #define WPA_MIN_REKEY_TIME 30 |
| #define WPA_NETWORK_ID_TXT_LEN 5 |
| #define WPA_P2P_DEFAULT_PERSISTENT 0 |
| #define WPA_P2P_GROUP_MAX_LEN 24 |
| #define WPA_P2P_IFNAME_MAX_LEN 10 |
| #define WPA_P2P_INTENT_LEN 13 |
| #define WPA_P2P_JOIN_LEN 5 |
| #define WPA_P2P_LISTEN_LEN 20 |
| #define WPA_P2P_MAX_INTENT 15 |
| #define WPA_P2P_MIN_INTENT 0 |
| #define WPA_P2P_PEER_CMD_LEN 27 |
| #define WPA_P2P_SCAN_MAX_CMD 32 |
| #define WPA_P2P_WPS_LEN 3 |
| #define WPA_SSID_SCAN_PREFEX_DISABEL 0 |
| #define WPA_SSID_SCAN_PREFEX_ENABLE 1 |
| #define WPA_STA_ITERA 4096 |
| #define WPA_STA_PMK_LEN 32 |
| #define WPA_STR_LEN | ( | x | ) | (strlen(x) + 1) |
| #define WPA_TXT_ADDR_LEN 17 |
| #define WPA_WEP104_HEX_KEY_LEN 26 |
| #define WPA_WEP104_KEY_LEN 13 |
| #define WPA_WEP40_HEX_KEY_LEN 10 |
| #define WPA_WEP40_KEY_LEN 5 |
| typedef enum ext_iftype wifi_iftype |
| typedef struct hostapd_conf wifi_softap_config |
| enum ext_iftype |
| enum ext_scan_record_flag |
| enum ext_wifi_status_val |
| enum wifi_csi_switch |
| enum wifi_extend_ie_index |
| enum wpa_rm_network |
| enum wpa_scan_type |
| int addr_precheck | ( | const unsigned char * | addr | ) |
| int chan_to_freq | ( | unsigned char | chan | ) |
| void clr_lock_flag | ( | void | ) |
| int is_ap_mesh_or_p2p_on | ( | void | ) |
| int is_hex_string | ( | const char * | data, |
| size_t | len | ||
| ) |
| int is_lock_flag_off | ( | void | ) |
| int los_count_wifi_dev_in_use | ( | void | ) |
| void los_free_wifi_dev | ( | struct ext_wifi_dev * | wifi_dev | ) |
| int los_freq_to_channel | ( | int | freq, |
| unsigned int * | channel | ||
| ) |
| struct ext_wifi_dev * los_get_wifi_dev_by_iftype | ( | ext_wifi_iftype | iftype | ) |
| struct ext_wifi_dev * los_get_wifi_dev_by_name | ( | const char * | ifname | ) |
| struct ext_wifi_dev * los_get_wifi_dev_by_priv | ( | const void * | ctx | ) |
| int los_set_wifi_dev | ( | struct ext_wifi_dev * | wifi_dev | ) |
| int los_wpa_scan | ( | struct wpa_scan_params * | params, |
| ext_wifi_iftype | iftype | ||
| ) |
| int los_wpa_ssid_config_set | ( | struct wpa_ssid * | ssid, |
| const char * | name, | ||
| const char * | value | ||
| ) |
| int try_set_lock_flag | ( | void | ) |
| int wifi_add_iface | ( | const struct ext_wifi_dev * | wifi_dev | ) |
| int wifi_channel_check | ( | unsigned char | chan | ) |
| struct ext_wifi_dev * wifi_dev_creat | ( | ext_wifi_iftype | iftype, |
| protocol_mode_enum | mode | ||
| ) |
| void wifi_new_task_event_cb | ( | const ext_wifi_event * | event_cb | ) |
| int wifi_remove_iface | ( | struct ext_wifi_dev * | wifi_dev | ) |
| int wifi_scan | ( | ext_wifi_iftype | iftype, |
| bool | is_mesh, | ||
| const ext_wifi_scan_params * | sp | ||
| ) |
| int wifi_scan_result | ( | ext_wifi_iftype | iftype | ) |
| void wifi_scan_result_base_flag_parse | ( | const char * | starttmp, |
| void * | buf | ||
| ) |
| int wifi_scan_result_bssid_parse | ( | char ** | starttmp, |
| void * | buf, | ||
| size_t * | reply_len | ||
| ) |
| int wifi_scan_result_filter_parse | ( | const void * | buf | ) |
| int wifi_scan_result_freq_parse | ( | char ** | starttmp, |
| void * | buf, | ||
| size_t * | reply_len | ||
| ) |
| int wifi_scan_result_rssi_parse | ( | char ** | starttmp, |
| void * | buf, | ||
| size_t * | reply_len | ||
| ) |
| int wifi_scan_result_ssid_parse | ( | char ** | starttmp, |
| void * | buf, | ||
| size_t * | reply_len | ||
| ) |
| int wifi_wpa_start | ( | const struct ext_wifi_dev * | wifi_dev | ) |
| int wifi_wpa_stop | ( | ext_wifi_iftype | iftype | ) |
| void wpa_event_task_free | ( | void | ) |
| struct ext_wifi_dev * wpa_get_other_existed_wpa_wifi_dev | ( | const void * | priv | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |