WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
soc_wifi_api.h 文件参考
#include <stdint.h>
#include "osal_types.h"
#include "td_type.h"
soc_wifi_api.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  ext_alg_param_stru
 
struct  psd_option_param
 
struct  ext_wifi_ptype_filter_stru
 
struct  ext_wifi_scan_params
 
struct  ext_wifi_scan_param_stru
 
struct  ext_wifi_ap_info
 
struct  wifi_app_common_input_param
 
struct  wifi_app_common_output_param
 
struct  wifi_app_common_param
 
struct  ext_wifi_assoc_request
 
struct  ext_wifi_fast_assoc_request
 
struct  ext_wifi_status
 
struct  event_wifi_scan_done
 
struct  event_wifi_connected
 
struct  event_wifi_disconnected
 
struct  event_wifi_interface_name
 
struct  event_wifi_wps_fail
 
struct  event_ap_sta_connected
 
struct  event_ap_sta_disconnected
 
struct  event_mesh_connected
 
struct  event_mesh_disconnected
 
struct  event_p2p_prov_disc_pbc_request
 
struct  event_p2p_prov_disc_pbc_response
 
struct  event_p2p_go_neg_request
 
struct  event_p2p_go_neg_success
 
struct  event_p2p_go_neg_failure
 
struct  event_p2p_group_started
 
struct  event_p2p_invite_recieve
 
struct  event_p2p_invite_result
 
struct  event_p2p_invite_accept
 
union  ext_wifi_event_info
 
struct  ext_wifi_event
 
struct  ext_wifi_softap_config
 
struct  ext_wifi_ap_sta_info
 
struct  ext_wifi_sta_psk_config
 
struct  ext_wifi_scan_result_stru
 
struct  ext_wifi_report_tx_params
 
struct  ext_wifi_ent_import_callback
 
struct  ext_csi_config
 
struct  data_segment
 设置eth data相关参数。 更多...
 

宏定义

#define MACSTR   "%02x:%02x:%02x:%02x:%02x:%02x"
 
#define mac2str(a)   (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
 
#define bit(x)   (1U << (x))
 
#define WIFI_CIPHER_TKIP   bit(3)
 
#define WIFI_CIPHER_CCMP   bit(4)
 
#define WIFI_24G_CHANNEL_NUMS   14
 
#define WIFI_IFNAME_MAX_SIZE   16
 
#define WIFI_MIN_RECONNECT_TIMEOUT   2
 
#define WIFI_MAX_RECONNECT_TIMEOUT   65535
 
#define WIFI_MIN_RECONNECT_PERIOD   1
 
#define WIFI_MAX_RECONNECT_PERIOD   65535
 
#define WIFI_MIN_RECONNECT_TIMES   1
 
#define WIFI_MAX_RECONNECT_TIMES   65535
 
#define WIFI_SCAN_AP_LIMIT   64
 
#define WIFI_STATUS_BUF_LEN_LIMIT   512
 
#define WIFI_WPS_PIN_LEN   8
 
#define WIFI_DEFAULT_MAX_NUM_STA   8
 
#define WIFI_SCAN_CNT_DEFAULT_ENABLE   (1 << 0)
 
#define WIFI_SCAN_TIME_DEFAULT_ENABLE   (1 << 1)
 
#define WIFI_SCAN_CHANNEL_INTERVAL_DEFAULT_ENABLE   (1 << 2)
 
#define WIFI_WORK_TIME_ON_HOME_CHANNEL_DEFAULT_ENABLE   (1 << 3)
 
#define WIFI_SINGLE_PROBE_REQ_SEND_TIMES_DEFAULT_ENABLE   (1 << 4)
 
#define EXT_WIFI_OK   0
 
#define EXT_WIFI_FAIL   (-1)
 
#define EXT_WIFI_MAX_SSID_LEN   32
 
#define EXT_WIFI_MAC_LEN   6
 
#define EXT_WIFI_DEV_TYPE_LEN   8
 
#define EXT_WIFI_DEV_NAME_LEN   32
 
#define EXT_WIFI_GROUP_NAME_LEN   100
 
#define EXT_WIFI_TXT_ADDR_LEN   17
 
#define EXT_WIFI_AP_KEY_LEN   64
 
#define EXT_WIFI_MAX_KEY_LEN   64
 
#define EXT_WIFI_INVALID_CHANNEL   0xFF
 
#define EXT_WIFI_VENDOR_IE_MAX_IDX   1
 
#define EXT_WIFI_VENDOR_IE_MAX_LEN   255
 
#define EXT_WIFI_CUSTOM_PKT_MIN_LEN   24
 
#define EXT_WIFI_CUSTOM_PKT_MAX_LEN   1400
 
#define EXT_WIFI_STA_PSK_LEN   32
 
#define EXT_WIFI_RETRY_MAX_NUM   15
 
#define EXT_WIFI_RETRY_MAX_TIME   200
 
#define EXT_WIFI_CB_MIN_PRIO   10
 
#define EXT_WIFI_CB_MAX_PRIO   30
 
#define EXT_WIFI_USR_IE_MAX_SIZE   257
 
#define EXT_WIFI_IDENTITY_LEN   64
 
#define WIFI_MAC_REPORT_DISCONNECT_OFFSET   5200
 
#define WIFI_NETWORK_NOT_FOUND_ERROR   5300
 
#define WLAN_REASON_MIC_FAILURE   14
 

类型定义

typedef void(* ext_wifi_scan_no_save_cb) (ext_wifi_scan_result_stru *scan_result)
 
typedef int(* uapi_wifi_ent_import_cb) (unsigned char **buf, unsigned int *len)
 
typedef int32_t(* wifi_psd_cb) (void *recv_buf, uint32_t data_len)
 
typedef int32_t(* wifi_promis_cb) (void *recv_buf, int32_t frame_len, int8_t rssi)
 
typedef void(* uapi_wifi_event_cb) (const ext_wifi_event *event)
 
typedef void(* wifi_csi_data_cb) (unsigned char *csi_data, int len)
 
typedef unsigned int(* uapi_wifi_report_tx_params_callback) (ext_wifi_report_tx_params *)
 
typedef int32_t(* wifi_rx_mgmt_cb) (void *recv_buf, int32_t frame_len, int8_t rssi)
 
typedef struct data_segment data_segment_t
 设置eth data相关参数。
 

枚举

enum  ext_wifi_cap { EXT_WIFI_CAP_DISABLE = 0 , EXT_WIFI_CAP_ENABLE , EXT_WIFI_CAP_BUTT }
 
enum  ext_wifi_monitor_mode {
  EXT_WIFI_MONITOR_OFF , EXT_WIFI_MONITOR_MCAST_DATA , EXT_WIFI_MONITOR_UCAST_DATA , EXT_WIFI_MONITOR_MCAST_MANAGEMENT ,
  EXT_WIFI_MONITOR_UCAST_MANAGEMENT , EXT_WIFI_MONITOR_BUTT
}
 
enum  ext_wifi_mac_disconnect_reason {
  WLAN_JOIN_RSP_TIMEOUT = 5200 , WLAN_AUTH_RSP2_TIMEOUT = 5201 , WLAN_AUTH_RSP4_TIMEOUT = 5202 , WLAN_ASOC_RSP_TIMEOUT = 5203 ,
  WLAN_AUTH_RSP_TIMEOUT = 5204 , WLAN_ACTIVE_DISCONNECT_OFFSET = 5205 , WLAN_DISASOC_MISC_LINKLOSS = 5206 , WLAN_MAC_EXT_AUTH_FAIL = 5210
}
 驱动上报的私有断连状态码, 与mac_common_frame_rom.h的值对应 更多...
 
enum  ext_wifi_pkt_type {
  EXT_WIFI_PKT_TYPE_BEACON , EXT_WIFI_PKT_TYPE_PROBE_REQ , EXT_WIFI_PKT_TYPE_PROBE_RESP , EXT_WIFI_PKT_TYPE_ASSOC_REQ ,
  EXT_WIFI_PKT_TYPE_ASSOC_RESP , EXT_WIFI_PKT_TYPE_BUTT
}
 
enum  ext_wifi_iftype {
  EXT_WIFI_IFTYPE_UNSPECIFIED , EXT_WIFI_IFTYPE_ADHOC , EXT_WIFI_IFTYPE_STATION = 2 , EXT_WIFI_IFTYPE_AP = 3 ,
  EXT_WIFI_IFTYPE_AP_VLAN , EXT_WIFI_IFTYPE_WDS , EXT_WIFI_IFTYPE_MONITOR , EXT_WIFI_IFTYPE_MESH_POINT = 7 ,
  EXT_WIFI_IFTYPE_P2P_CLIENT , EXT_WIFI_IFTYPE_P2P_GO , EXT_WIFI_IFTYPE_P2P_DEVICE , EXT_WIFI_IFTYPES_BUTT
}
 
enum  ext_wifi_bw { EXT_WIFI_BW_HIEX_5M , EXT_WIFI_BW_HIEX_10M , EXT_WIFI_BW_LEGACY_20M , EXT_WIFI_BW_BUTT }
 
enum  ext_phy_protocol_enum { WIFI_11B_PHY_PROTOCOL_MODE = 0 , WIFI_LEGACY_OFDM_PHY_PROTOCOL_MODE = 1 , WIFI_HT_PHY_PROTOCOL_MODE = 2 , WIFI_HE_SU_FORMAT = 3 }
 
enum  ext_wifi_auth_mode {
  EXT_WIFI_SEC_TYPE_INVALID = -1 , EXT_WIFI_SECURITY_OPEN , EXT_WIFI_SECURITY_WEP , EXT_WIFI_SECURITY_WPA2PSK ,
  EXT_WIFI_SECURITY_WPAPSK_WPA2PSK_MIX , EXT_WIFI_SECURITY_WPAPSK , EXT_WIFI_SECURITY_WPA , EXT_WIFI_SECURITY_WPA2 ,
  EXT_WIFI_SECURITY_SAE , EXT_WIFI_SECURITY_WPA3_WPA2_PSK_MIX , EXT_WIFI_SECURITY_WPA3 , EXT_WIFI_SECURITY_OWE ,
  EXT_WIFI_SECURITY_WAPI_PSK , EXT_WIFI_SECURITY_WAPI_CERT , EXT_WIFI_SECURITY_WPA3_WPA2_MIX , EXT_WIFI_SECURITY_WEP_OPEN ,
  EXT_WIFI_SECURITY_WPA3_192BIT , EXT_WIFI_SECURITY_UNKNOWN
}
 
enum  ext_wifi_pairwise {
  EXT_WIFI_PARIWISE_UNKNOWN , EXT_WIFI_PAIRWISE_AES , EXT_WIFI_PAIRWISE_TKIP , EXT_WIFI_PAIRWISE_TKIP_AES_MIX ,
  EXT_WIFI_PAIRWISE_CCMP256 , EXT_WIFI_PAIRWISE_CCMP256_CCMP , EXT_WIFI_PAIRWISE_CCMP256_TKIP , EXT_WIFI_PAIRWISE_BUTT
}
 
enum  wifi_sae_pwe_option_enum { WIFI_SAE_PWE_UNSPECIFIED , WIFI_SAE_PWE_HUNT_AND_PECK , WIFI_SAE_PWE_HASH_TO_ELEMENT , WIFI_SAE_PWE_BOTH }
 
enum  ext_wifi_conn_status { EXT_WIFI_DISCONNECTED , EXT_WIFI_CONNECTED , EXT_WIFI_CONNECTING }
 
enum  ext_wifi_extend_ie_index {
  EXT_WIFI_EXTEND_IE1 , EXT_WIFI_EXTEND_IE2 , EXT_WIFI_EXTEND_IE3 , EXT_WIFI_EXTEND_IE4 ,
  EXT_WIFI_EXTEND_IE_BUTT
}
 
enum  ext_wifi_frame_type { EXT_WIFI_BEACON_IE = (1 << 0) , EXT_WIFI_PROBE_REQ_IE = (1 << 1) , EXT_WIFI_PROBE_RSP_IE = (1 << 2) }
 
enum  ext_wifi_event_type {
  EXT_WIFI_EVT_UNKNOWN , EXT_WIFI_EVT_SCAN_DONE , EXT_WIFI_EVT_CONNECTED , EXT_WIFI_EVT_DISCONNECTED ,
  EXT_WIFI_EVT_WPS_TIMEOUT , EXT_WIFI_EVT_WPS_SUCCESS , EXT_WIFI_EVT_WPS_FAIL , EXT_WIFI_EVT_MESH_CONNECTED ,
  EXT_WIFI_EVT_MESH_DISCONNECTED , EXT_WIFI_EVT_AP_START , EXT_WIFI_EVT_AP_DISABLE , EXT_WIFI_EVT_STA_CONNECTED ,
  EXT_WIFI_EVT_STA_DISCONNECTED , EXT_WIFI_EVT_STA_NO_NETWORK , EXT_WIFI_EVT_MESH_CANNOT_FOUND , EXT_WIFI_EVT_MESH_SCAN_DONE ,
  EXT_WIFI_EVT_MESH_STA_SCAN_DONE , EXT_WIFI_EVT_AP_SCAN_DONE , EXT_WIFI_EVT_P2P_FIND_STOP , EXT_WIFI_EVT_P2P_PROV_DISC_PBC_REQ ,
  EXT_WIFI_EVT_P2P_PROV_DISC_PBC_RESP , EXT_WIFI_EVT_P2P_GO_NEG_REQUEST , EXT_WIFI_EVT_P2P_GO_NEG_SUCCESS , EXT_WIFI_EVT_P2P_GO_NEG_FAILURE ,
  EXT_WIFI_EVT_P2P_GROUP_FORMATION_SUCCESS , EXT_WIFI_EVT_P2P_GROUP_FORMATION_FAILURE , EXT_WIFI_EVT_P2P_GROUP_STARTED , EXT_WIFI_EVT_P2P_INVITATION_RECIEVE ,
  EXT_WIFI_EVT_P2P_INVITATION_RESULT , EXT_WIFI_EVT_P2P_INVITATION_ACCEPT , EXT_WIFI_EVT_BUTT
}
 
enum  ext_wifi_scan_type {
  EXT_WIFI_BASIC_SCAN , EXT_WIFI_CHANNEL_SCAN , EXT_WIFI_SSID_SCAN , EXT_WIFI_SSID_PREFIX_SCAN ,
  EXT_WIFI_BSSID_SCAN
}
 
enum  ext_wifi_wpa_psk_usage_type { EXT_WIFI_WPA_PSK_NOT_USE , EXT_WIFI_WPA_PSK_USE_INNER , EXT_WIFI_WPA_PSK_USE_OUTER }
 
enum  ext_wifi_xldo_voltage { EXT_WIFI_XLDO_VOLTAGE_0 = 0x00 , EXT_WIFI_XLDO_VOLTAGE_1 = 0x11 , EXT_WIFI_XLDO_VOLTAGE_2 = 0x22 , EXT_WIFI_XLDO_VOLTAGE_3 = 0x33 }
 
enum  ext_wifi_eap_method { EXT_WIFI_EAP_METHOD_TLS , EXT_WIFI_EAP_METHOD_BUTT }
 
enum  ext_wifi_retry_frame_type { EXT_WIFI_RETRY_FRAME_DATA , EXT_WIFI_RETRY_FRAME_MGMT , EXT_WIFI_RETRY_FRAME_BUTT }
 

函数

unsigned int uapi_wifi_force_scan_complete (void)
 
unsigned int uapi_wifi_scan_results_clear (void)
 
int uapi_wifi_get_scan_flag (void)
 
int uapi_wifi_ap_scan (void)
 
int uapi_wifi_sta_raw_scan (ext_wifi_scan_params *sp, ext_wifi_scan_no_save_cb cb)
 
int uapi_wifi_csi_set_config (const char *ifname, const ext_csi_config *config)
 
void uapi_csi_register_data_report_cb (wifi_csi_data_cb data_cb)
 
int uapi_wifi_csi_start (void)
 
int uapi_wifi_csi_stop (void)
 
td_s32 uapi_wifi_set_pkt_retry_policy (td_u8 frame_type, td_u8 retry_count)
 
int uapi_wifi_mac_phy_reset (void)
 
td_u32 uapi_wifi_set_rts_threshold (td_u8 mode, td_u16 pkt_length)
 
uint32_t uapi_wifi_set_phy_txrate (td_u8 auto_rate, ext_alg_param_stru *alg_param)
 
td_u32 uapi_wifi_enable_intrf_mode (const td_char *ifname, td_u8 enable, td_u16 flag)
 
td_s32 uapi_wifi_get_tx_params (const td_char *mac_addr, td_u8 mac_len, td_u32 *tx_best_rate)
 
td_s32 uapi_set_low_current_boot_mode (td_u16 flag)
 
int uapi_wifi_set_wow_switch (uint8_t enable)
 Set wow switch.CNcomment:设置wow特性开关.CNend
 
int uapi_wifi_set_wow_pattern (unsigned char type, unsigned char index, unsigned char *pattern)
 Set wow switch.CNcomment:配置wow特定唤醒报文格式.CNend
 
td_s32 uapi_wifi_init (const td_u8 vap_res_num, const td_u8 user_res_num)
 Wifi initialize.CNcomment:wifi初始化.CNend
 
int uapi_wifi_deinit (void)
 Wifi de-initialize.CNcomment:wifi去初始化.CNend
 
unsigned char uapi_wifi_get_init_status (void)
 Get wifi initialize status.CNcomment:获取wifi初始化状态.CNend
 
int wifi_sta_set_sae_pwe (wifi_sae_pwe_option_enum pwe)
 Config sae pwe settings of sta.CNcomment:配置station的sae pwe.CNend
 
int wifi_softap_set_sae_pwe (wifi_sae_pwe_option_enum pwe)
 Config sae pwe settings of softap.CNcomment:配置softap的sae pwe.CNend
 
int uapi_wifi_sta_start (char *ifname, int *len)
 Start wifi station.CNcomment:开启STA.CNend
 
int uapi_wifi_sta_stop (void)
 Close wifi station.CNcomment:关闭STA.CNend
 
int uapi_wifi_sta_scan (void)
 Start sta basic scanning in all channels.CNcomment:station进行全信道基础扫描.CNend
 
int uapi_wifi_sta_advance_scan (ext_wifi_scan_params *sp)
 Start station scanning with specified parameter.CNcomment:station执行带特定参数的扫描.CNend
 
int uapi_wifi_sta_scan_results (ext_wifi_ap_info *ap_list, unsigned int *ap_num)
 sta start scan.CNcomment:station进行扫描.CNend
 
int uapi_wifi_sta_scan_results_clear (void)
 Clear sta scan result.CNcomment:清除sta扫描链表.CNend
 
int uapi_wifi_wnm_bss_query (int reason_code, int candidate_list)
 Clear sta scan result.CNcomment:发送bss query报文.CNend
 
int uapi_wifi_wnm_notify (const char *param, unsigned int len)
 Clear sta scan result.CNcomment:发送wnm notify query报文.CNend
 
int uapi_wifi_sta_connect (const ext_wifi_assoc_request *req)
 sta start connect.CNcomment:station进行连接网络.CNend
 
int uapi_wifi_sta_fast_connect (const ext_wifi_fast_assoc_request *fast_request)
 Start fast connect.CNcomment:station进行快速连接网络.CNend
 
int uapi_wifi_sta_disconnect (void)
 Disconnect from network.CNcomment:station断开相连的网络.CNend
 
int uapi_wifi_sta_set_reconnect_policy (int enable, unsigned int seconds, unsigned int period, unsigned int max_try_count)
 Set reconnect policy.CNcomment:station设置重新连接网络机制.CNend
 
int uapi_wifi_sta_reconnect_for_wfa_test (void)
 STA reconnect without deleting the network configuration, only used for WFA tests. CNcomment:station模式下重新发起关联但不删除network配置信息,仅WFA测试使用.CNend
 
int uapi_wifi_sta_get_connect_info (ext_wifi_status *connect_status)
 Get status of sta.CNcomment:获取station连接的网络状态.CNend
 
int uapi_wifi_sta_wps_pbc (const unsigned char *bssid, unsigned int bssid_len)
 Start pbc connect in WPS.CNcomment:设置WPS进行pbc连接.CNend
 
int uapi_wifi_sta_wps_pin (const char *pin, unsigned int pin_len, const unsigned char *bssid, unsigned int bssid_len)
 Start pin connect in WPS.CNcomment:WPS通过pin码连接网络.CNend
 
int uapi_wifi_sta_wps_pin_get (char *pin, unsigned int len)
 Get pin code.CNcomment:WPS获取pin码.CNend
 
int uapi_wifi_sta_get_ap_rssi (void)
 Get rssi value.CNcomment:获取rssi值.CNend
 
int uapi_wifi_sta_get_ap_snr (void)
 Get snr value.CNcomment:获取snr值.CNend
 
td_s32 uapi_wifi_ap_get_sta_info (td_char *mac_addr, td_s8 *rssi, td_u32 *best_rate)
 Get info of sta which ap connected to.CNcomment:获取ap连接的sta信息.CNend
 
td_s32 uapi_wifi_sta_set_pm_param (td_u8 pm_timeout, td_u8 pm_timer_cnt, td_u8 bcn_timeout, td_u8 mcast_timeout, td_u16 sleep_time)
 Set sta powersave configuration.CNcomment:设置STA的低功耗参数.CNend
 
int uapi_wifi_psk_calc (ext_wifi_sta_psk_config psk_config, unsigned char *get_psk, unsigned int psk_len)
 WPA PSK Calculate.CNcomment:计算WPA PSK.CNend
 
int uapi_wifi_psk_calc_and_store (ext_wifi_sta_psk_config psk_config)
 WPA PSK Calculate,then keep it inside .CNcomment:计算WPA PSK, 并做内部保存.CNend
 
int uapi_wifi_config_callback (unsigned char mode, unsigned char task_prio, unsigned short stack_size)
 config calling mode of user's callback interface.CNcomment:配置用户回调接口的调用方式.CNend
 
int uapi_wifi_register_event_callback (uapi_wifi_event_cb event_cb)
 register user callback interface.CNcomment:注册回调函数接口.CNend
 
int uapi_wifi_softap_set_beacon_period (int beacon_period)
 Set softap's beacon interval.CNcomment:设置softap的beacon周期.CNend
 
int uapi_wifi_softap_set_dtim_period (int dtim_period)
 Set softap's dtim count.CNcomment:设置softap的dtim周期.CNend
 
int uapi_wifi_softap_set_group_rekey (int wifi_group_rekey)
 Set update time of softap's group key.CNcomment:配置softap组播秘钥更新时间.CNend
 
int uapi_wifi_softap_set_shortgi (int flag)
 Set short-gi of softap.CNcomment:设置softap的SHORT-GI功能.CNend
 
int uapi_wifi_softap_start (ext_wifi_softap_config *conf, char *ifname, int *len)
 Start softap interface.CNcomment:开启SoftAP.CNend
 
int uapi_wifi_softap_stop (void)
 Close softap interface.CNcomment:关闭SoftAP.CNend
 
int uapi_wifi_softap_get_connected_sta (ext_wifi_ap_sta_info *sta_list, unsigned int *sta_num)
 Get all user's information of softap.CNcomment:softap获取已连接的station的信息.CNend
 
int uapi_wifi_softap_deauth_sta (const unsigned char *addr, unsigned char addr_len)
 Softap deauth user by mac address.CNcomment:softap指定断开连接的station网络.CNend
 
int uapi_wifi_softap_set_pairwise (int pairwise)
 Set softap pairwise.CNcomment:设置pairwise.CNend
 
td_s32 uapi_wifi_set_country (const td_char *cc, td_u8 cc_len)
 Set country code.CNcomment:设置国家码.CNend
 
td_s32 uapi_wifi_get_country (td_char *cc, td_u8 *len)
 Get country code.CNcomment:获取国家码.CNend
 
td_s32 uapi_wifi_set_bandwidth (const td_char *ifname, td_u8 ifname_len, ext_wifi_bw bw)
 Set bandwidth.CNcomment:设置带宽.CNend
 
ext_wifi_bw uapi_wifi_get_bandwidth (const td_char *ifname, td_u8 ifname_len)
 Get bandwidth.CNcomment:获取带宽.CNend
 
td_s32 uapi_wifi_set_channel (const td_char *ifname, td_u8 ifname_len, td_s32 channel)
 Set channel.CNcomment:设置信道.CNend
 
td_s32 uapi_wifi_get_channel (const td_char *ifname, td_u8 ifname_len)
 Get channel.CNcomment:获取信道.CNend
 
int uapi_wifi_set_scan_param (const td_char *ifname, ext_wifi_scan_param_stru *scan_param)
 Set scan.param.CNcomment:设置扫描参数.CNend
 
osal_s32 uapi_wifi_promis_enable (const osal_char *ifname, osal_s32 enable, const ext_wifi_ptype_filter_stru *filter)
 Set monitor mode.CNcomment:设置混杂模式.CNend
 
int uapi_wifi_sdp_enable (const osal_char *ifname, osal_s32 enable, osal_s32 ratio)
 Set wifi aware enable.CNcomment:设置wifi aware使能.CNend
 
int uapi_wifi_sdp_subscribe (const osal_char *ifname, osal_char *sdp_subscribe, osal_s32 local_handle)
 Set wifi aware subscribe.CNcomment:设置wifi aware订阅.CNend
 
int uapi_wifi_promis_set_rx_callback (wifi_promis_cb data_cb)
 Register receive callback in monitor mode.CNcomment:注册混杂模式的收包回调函数.CNend
 
td_s32 uapi_wifi_set_pm_switch (td_u8 enable, td_u32 sleep_time)
 Open/close system power save.CNcomment:开启/关闭WiFi低功耗模式并配置预期休眠时间.CNend
 
osal_s32 uapi_wifi_set_linkloss_paras (osal_u8 probe_request_ratio, osal_u16 linkloss_threshold)
 Set Linkloss paras.CNcomment:设置Linkloss的参数.CNend
 
unsigned char uapi_wifi_arp_offload_setting (const char *ifname, unsigned char en, unsigned int ip)
 Set arp offload on/off.CNcomment:设置arp offload 打开/关闭.CNend
 
unsigned int uapi_wifi_nd_offload_setting (const char *ifname, unsigned char en, unsigned char *ip6)
 Set nd offload on/off.CNcomment:设置nd offload 打开/关闭.CNend
 
td_s32 uapi_wifi_set_txpower_up_limit (const td_char *ifname, td_s32 power)
 Set tx power.CNcomment:设置发送功率上限.CNend
 
td_s32 uapi_wifi_get_txpower_up_limit (const td_char *ifname)
 Get tx power.CNcomment:获取发送功率上限.CNend
 
td_u32 uapi_wifi_set_retry_params (const td_char *ifname, td_u8 type, td_u8 limit)
 Set retry params.CNcomment:设置软件重传策略.CNend
 
td_u32 uapi_wifi_set_cca_threshold (td_u8 mode, td_s8 threshold)
 Set cca threshold.CNcomment:设置CCA门限.CNend
 
td_u32 uapi_wifi_set_tx_pwr_offset (const td_char *ifname, td_s16 offset)
 Set tx power offset.CNcomment:设置发送功率偏移.CNend
 
int uapi_wifi_send_custom_pkt (const char *ifname, const unsigned char *data, unsigned int len)
 Send a custom frame.CNcomment:发送用户定制报文.CNend
 
int uapi_wifi_add_usr_app_ie (ext_wifi_iftype iftype, ext_wifi_extend_ie_index ie_index, const unsigned char frame_type_bitmap, const unsigned char *ie, unsigned short ie_len)
 Add user IEs to management frame.CNcomment:在管理帧中添加用户IE字段。CNend
 
int uapi_wifi_delete_usr_app_ie (ext_wifi_iftype iftype, ext_wifi_extend_ie_index ie_index, const unsigned char frame_type_bitmap)
 Delete user IEs from management frame.CNcomment:在管理帧中删除用户IE字段。CNend
 
td_u32 uapi_wifi_set_tpc (td_u32 tpc_value)
 Set tcp mode.CNcomment:设置tpc开关.CNend
 
short uapi_wifi_get_mac_status_code (void)
 Get Status Codes for Authentication and Association Frames. CNcomment:查询Authentication与Association帧status code.CNend
 
td_u32 uapi_wifi_set_evm_para (td_u8 pa_bias, const ext_wifi_xldo_voltage *osc_drv_vals, td_u8 size)
 Set evm para.CNcomment:设置evm参数.CNend
 
int uapi_wifi_sta_ent_set_eap_method (ext_wifi_eap_method method)
 Set wpa-enterprise eap method.CNcomment:设置企业级方法.CNend
 
int uapi_wifi_sta_ent_set_identity (const char *identity, unsigned int len)
 Set wpa-enterprise identity.CNcomment:设置企业级身份信息.CNend
 
int uapi_wifi_sta_ent_set_import_callback (ext_wifi_ent_import_callback *cb)
 Set wpa-enterprise read callback.CNcomment:设置企业级证书/密钥读取的回调接口.CNend
 
int uapi_wifi_set_mgmt_report (wifi_rx_mgmt_cb data_cb, uint8_t mode)
 Register receive callback for management frame.CNcomment:注册管理帧收包回调函数.CNend
 
osal_u32 uapi_alg_ar_fix_cfg_etc (osal_u32 value)
 Set wpa-enterprise read callback.CNcomment:autorate配置速率模式函数接口.CNend
 
int uapi_wifi_set_psd_enable (psd_option_param *psd_option)
 Set psd enable mode.CNcomment:配置PSD状态函数接口.CNend
 
int uapi_wifi_set_psd_cb (wifi_psd_cb data_cb)
 Set psd callback.CNcomment:配置PSD回调.CNend
 
int uapi_wifi_send_pkt (osal_void *dev, const data_segment_t *seg, uint8_t seg_len)
 获取数据发包.CNcomment:配置发包接口.CNend
 
int uapi_wifi_set_brctl (const char *oper, const char *if_name)
 配置Repeater开关及接口.CNcomment:配置Repeater开关及接口.CNend
 

宏定义说明

◆ bit

#define bit (   x)    (1U << (x))

◆ mac2str

#define mac2str (   a)    (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]

◆ MACSTR

#define MACSTR   "%02x:%02x:%02x:%02x:%02x:%02x"

mac transform string.CNcomment:地址转为字符串.CNend

◆ WIFI_MAC_REPORT_DISCONNECT_OFFSET

#define WIFI_MAC_REPORT_DISCONNECT_OFFSET   5200

◆ WIFI_NETWORK_NOT_FOUND_ERROR

#define WIFI_NETWORK_NOT_FOUND_ERROR   5300

◆ WLAN_REASON_MIC_FAILURE

#define WLAN_REASON_MIC_FAILURE   14

类型定义说明

◆ data_segment_t

typedef struct data_segment data_segment_t

设置eth data相关参数。

枚举类型说明

◆ ext_phy_protocol_enum

The protocol mode of station which softap connected to.CNcomment:与softap连接的sta的phy协议.CNend

枚举值
WIFI_11B_PHY_PROTOCOL_MODE 

11b CCK. CNcomment:11b.CNend

WIFI_LEGACY_OFDM_PHY_PROTOCOL_MODE 

11g/a OFDM. CNcomment:11g/a.CNend

WIFI_HT_PHY_PROTOCOL_MODE 

11n HT. CNcomment:11n.CNend

WIFI_HE_SU_FORMAT 

11ax HE SU Format type. CNcomment:11ax.CNend

◆ ext_wifi_frame_type

枚举值
EXT_WIFI_BEACON_IE 
EXT_WIFI_PROBE_REQ_IE 
EXT_WIFI_PROBE_RSP_IE 

◆ ext_wifi_mac_disconnect_reason

驱动上报的私有断连状态码, 与mac_common_frame_rom.h的值对应

枚举值
WLAN_JOIN_RSP_TIMEOUT 
WLAN_AUTH_RSP2_TIMEOUT 
WLAN_AUTH_RSP4_TIMEOUT 
WLAN_ASOC_RSP_TIMEOUT 
WLAN_AUTH_RSP_TIMEOUT 
WLAN_ACTIVE_DISCONNECT_OFFSET 
WLAN_DISASOC_MISC_LINKLOSS 
WLAN_MAC_EXT_AUTH_FAIL 

函数说明

◆ uapi_wifi_set_linkloss_paras()

osal_s32 uapi_wifi_set_linkloss_paras ( osal_u8  probe_request_ratio,
osal_u16  linkloss_threshold 
)

Set Linkloss paras.CNcomment:设置Linkloss的参数.CNend

Description:
Set Linkloss paras.CNcomment:设置Linkloss的参数.CNend
注意
NULL
参数
probe_request_ratio[IN] Type #unsigned char, 1~10 linkloss cnt reach N/10 to send probe requeset. CNcomment:开始发送probe request帧时的linkloss时间比例(N/10), 如5,即在一半linkloss时间时开始发送单播probe request帧保活.CNend
linkloss_threshold[IN] Type #unsigned int, 100~1000 linkloss time(uint: 100ms). CNcomment:linkloss老化基础时间(单位: 100毫秒,100), 参考有效范围100~1000, 对应实际基础老化时间为10s~100s,会根据当前运行状态 (是否低功耗,是否DBAC等等)进行调整,所设置时间不一定是最终老化时间.CNend
返回值
EXT_ERR_SUCCESSExcute successfully
#OtherError code
Dependency:
  • hi_wifi_api.h: WiFi API
参见
NULL
自从