|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
结构体 | |
| struct | ext_wifi_scan_params |
| struct | ext_wifi_scan_param_stru |
| struct | ext_wifi_ap_info |
| 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_report_tx_params |
| struct | ext_wifi_ent_import_callback |
类型定义 | |
| 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) |
函数 | |
| int | uapi_wifi_sta_set_protocol_mode (protocol_mode_enum mode) |
| Set protocol mode of sta.CNcomment:设置station接口的protocol模式.CNend | |
| protocol_mode_enum | uapi_wifi_sta_get_protocol_mode (void) |
| Get protocol mode of.CNcomment:获取station接口的protocol模式.CNend | |
| int | uapi_wifi_softap_set_protocol_mode (protocol_mode_enum mode) |
| Set protocol mode of softap.CNcomment:设置softap接口的protocol模式.CNend | |
| protocol_mode_enum | uapi_wifi_softap_get_protocol_mode (void) |
| Get protocol mode of softap.CNcomment:获取softap接口的protocol模式.CNend | |
| int | uapi_wifi_set_pmf (wifi_pmf_option_enum pmf) |
| Config pmf settings of sta.CNcomment:配置station的pmf.CNend | |
| struct ext_wifi_dev * | wifi_dev_get (ext_wifi_iftype iftype) |
| Get wifi device config.CNcomment:获取wifi device的配置.CNend | |
| 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 | |
| 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 | |
| #define EXT_WIFI_AP_KEY_LEN 64 |
Length of Key.CNcomment:KEY 密码长度定义.CNend
| #define EXT_WIFI_CB_MAX_PRIO 30 |
Max priority of callback task.CNcomment:事件回调task的最大优先级.CNend
| #define EXT_WIFI_CB_MIN_PRIO 10 |
Minimum priority of callback task.CNcomment:事件回调task的最小优先级.CNend
| #define EXT_WIFI_CUSTOM_PKT_MAX_LEN 1400 |
Max length of custom's frame.CNcomment:用户定制报文最大长度值.CNend
| #define EXT_WIFI_CUSTOM_PKT_MIN_LEN 24 |
Minimum length of custom's frame.CNcomment:用户定制报文最小长度值.CNend
| #define EXT_WIFI_DEV_NAME_LEN 32 |
Length of device name.CNcomment:device name长度定义.CNend
| #define EXT_WIFI_DEV_TYPE_LEN 8 |
Length of device type.CNcomment:device type长度定义.CNend
| #define EXT_WIFI_FAIL (-1) |
return failed value.CNcomment:返回值错误标识.CNend
| #define EXT_WIFI_GROUP_NAME_LEN 100 |
Length of group name.CNcomment:group name长度定义.CNend
| #define EXT_WIFI_IDENTITY_LEN 64 |
max identity length.CNcomment:身份字段最大长度CNend
| #define EXT_WIFI_INVALID_CHANNEL 0xFF |
Return value of invalid channel.CNcomment:无效信道返回值.CNend
| #define EXT_WIFI_MAC_LEN 6 |
Length of MAC address.CNcomment:MAC地址长度定义.CNend
| #define EXT_WIFI_MAX_KEY_LEN 64 |
Maximum length of Key.CNcomment:KEY 最大密码长度.CNend
| #define EXT_WIFI_MAX_SSID_LEN 32 |
Max length of SSID.CNcomment:SSID最大长度定义.CNend
| #define EXT_WIFI_OK 0 |
return success value.CNcomment:返回成功标识.CNend
| #define EXT_WIFI_RETRY_MAX_NUM 15 |
Max num of retry.CNcomment:软件重传的最大次数.CNend
| #define EXT_WIFI_RETRY_MAX_TIME 200 |
Max time of retry.CNcomment:软件重传的最大时间.CNend
| #define EXT_WIFI_STA_PSK_LEN 32 |
Length of wpa psk.CNcomment:wpa psk的长度.CNend
| #define EXT_WIFI_TXT_ADDR_LEN 17 |
String length of bssid, eg. 00:00:00:00:00:00.CNcomment:bssid字符串长度定义(00:00:00:00:00:00).CNend
| #define EXT_WIFI_USR_IE_MAX_SIZE 257 |
max usr ie length.CNcomment:用户IE字段最大长度CNend
| #define EXT_WIFI_VENDOR_IE_MAX_IDX 1 |
Index of Vendor IE.CNcomment:Vendor IE 最大索引.CNend
| #define EXT_WIFI_VENDOR_IE_MAX_LEN 255 |
Max length of Vendor IE.CNcomment:Vendor IE 最大长度.CNend
| #define MAX_CLINET_SAVE_ADDR_LEN 48 |
Total address length of the maximum number of clients.CNcomment:最大数client的地址总长度.CNend
| #define MAX_METHOND_CONFIG_LEN 44 |
length of methond config.CNcomment:关联方法的长度.CNend
| #define P2P_MAC_LEN 6 |
Length of MAC address.CNcomment:MAC地址长度定义.CNend
| #define P2P_MAX_PERSISTENT_CNT 10 |
Max num of persistent group.CNcomment:永久网络最大数量.CNend
| #define P2P_MAX_SSID_LEN 32 |
Max length of SSID.CNcomment:SSID最大长度定义.CNend
| #define PREFIX_NAME_LEN 32 |
Len of Prefix name.CNcomment:网络前缀名称长度.CNend
| #define PSK_LEN 32 |
Max length of PSK.CNcomment:PSK长度.CNend
| #define WIFI_24G_CHANNEL_NUMS 14 |
Channel numbers of 2.4G frequency.CNcomment:2.4G频段的信道数量.CNend
| #define WIFI_CIPHER_CCMP bit(4) |
CCMP of cipher mode.CNcomment:加密方式为CCMP.CNend
| #define WIFI_CIPHER_TKIP bit(3) |
TKIP of cipher mode.CNcomment:加密方式为TKIP.CNend
| #define WIFI_DEFAULT_MAX_NUM_STA 8 |
default max num of station.CNcomment:默认支持的station最大个数.CNend
| #define WIFI_DEFAULT_P2P_MAX_NUM_CLIENT 4 |
Max num of p2p client.CNcomment:p2p默认支持client的最大数量.CNend
| #define WIFI_IFNAME_MAX_SIZE 16 |
max interiface name length.CNcomment:网络接口名最大长度.CNend
| #define WIFI_MAX_RECONNECT_PERIOD 65535 |
The maximum auto reconnect interval.CNcomment:最大自动重连间隔时间.CNend
| #define WIFI_MAX_RECONNECT_TIMEOUT 65535 |
The maximum timeout of a single reconnection, representing an infinite number of loop reconnections. CNcomment:最大单次重连超时时间,表示无限次循环重连.CNend
| #define WIFI_MAX_RECONNECT_TIMES 65535 |
The maximum times of auto reconnect.CNcomment:最大自动重连连接次数.CNend
| #define WIFI_MIN_RECONNECT_PERIOD 1 |
The minimum auto reconnect interval.CNcomment:最小自动重连间隔时间.CNend
| #define WIFI_MIN_RECONNECT_TIMEOUT 2 |
The minimum timeout of a single reconnection.CNcomment:最小单次重连超时时间.CNend
| #define WIFI_MIN_RECONNECT_TIMES 1 |
The minmum times of auto reconnect.CNcomment:最小自动重连连接次数.CNend
| #define WIFI_SCAN_AP_LIMIT 64 |
max scan number of ap.CNcomment:支持扫描ap的最多数目.CNend
| #define WIFI_SCAN_CHANNEL_INTERVAL_DEFAULT_ENABLE (1 << 2) |
scan_channel_interval default value enable bit 0B0100.CNcomment:scan_channel_interval默认值使能位0B0100.CNend
| #define WIFI_SCAN_CNT_DEFAULT_ENABLE (1 << 0) |
scan_cnt default value enable bit 0B0001.CNcomment:scan_cnt默认值使能位0B0001.CNend
| #define WIFI_SCAN_TIME_DEFAULT_ENABLE (1 << 1) |
scan_time default value enable bit 0B0010.CNcomment:scan_time默认值使能位0B0010.CNend
| #define WIFI_SINGLE_PROBE_REQ_SEND_TIMES_DEFAULT_ENABLE (1 << 4) |
single_probe_req_send_times default value enable bit 0B10000.CNcomment:probe_req_send_cnt默认值使能位0B10000.CNend
| #define WIFI_STATUS_BUF_LEN_LIMIT 512 |
length of status buff.CNcomment:获取连接状态字符串的长度.CNend
| #define WIFI_WORK_TIME_ON_HOME_CHANNEL_DEFAULT_ENABLE (1 << 3) |
work_time_on_home_channel default value enable bit 0B1000.CNcomment:work_time_on_home_channel默认值使能位0B1000.CNend
| #define WIFI_WPS_PIN_LEN 8 |
Decimal only WPS pin code length.CNcomment:WPS中十进制pin码长度.CNend
| #define WPS_DEV_TYPE_LEN 8 |
length of device type.CNcomment:device type的长度.CNend
| typedef void(* ext_wifi_scan_no_save_cb) (ext_wifi_scan_result_stru *scan_result) |
callback function definition of wpa-enterprise param import.CNcommment:定制化扫描回调函数.CNend
| typedef int(* uapi_wifi_ent_import_cb) (unsigned char **buf, unsigned int *len) |
callback function definition of wpa-enterprise param import.CNcommment:企业级导入回调接口定义.CNend
| typedef void(* uapi_wifi_event_cb) (const ext_wifi_event *event) |
callback function definition of wifi event.CNcommment:wifi事件回调接口定义.CNend
| typedef unsigned int(* uapi_wifi_report_tx_params_callback) (ext_wifi_report_tx_params *) |
callback function definition of wifi event to get goodput and average send times. CNcommment:wifi获取吞吐量、平均发送次数事件回调接口定义.CNend
| typedef void(* wifi_csi_data_cb) (unsigned char *csi_data, int len) |
callback function definition of wpa-enterprise param import.CNcommment:CSI调接口定义.CNend
| typedef int32_t(* wifi_promis_cb) (void *recv_buf, int32_t frame_len, int8_t rssi) |
callback function definition of monitor mode.CNcommment:混杂模式收包回调接口定义.CNend
| typedef int32_t(* wifi_psd_cb) (void *recv_buf, uint32_t data_len) |
callback function definition of psd data report.CNcommment:PSD数据上报回调接口定义.CNend
| typedef int32_t(* wifi_rx_mgmt_cb) (void *recv_buf, int32_t frame_len, int8_t rssi) |
callback function definition of management frame report.CNcommment:管理帧收包回调接口定义.CNend
| enum ext_wifi_auth_mode |
Authentification type enum.CNcomment:认证类型(连接网络不支持EXT_WIFI_SECURITY_WPAPSK).CNend
| enum ext_wifi_bw |
| enum ext_wifi_cap |
Event type of WiFi event.CNcomment:WiFi的事件类型CNend
| 枚举值 | |
|---|---|
| EXT_WIFI_CAP_DISABLE | 关闭某项WIFI能力 |
| EXT_WIFI_CAP_ENABLE | 使能某项WIFI能力 |
| EXT_WIFI_CAP_BUTT | |
| enum ext_wifi_conn_status |
| enum ext_wifi_eap_method |
| enum ext_wifi_event_type |
Event type of WiFi event.CNcomment:WiFi的事件类型.CNend
| enum ext_wifi_iftype |
Interface type of wifi.CNcomment:wifi 接口类型.CNend
Reporting data type of monitor mode.CNcomment:混杂模式上报的数据类型.CNend
| enum ext_wifi_pairwise |
Encryption type enum.CNcoment:加密类型.CNend
| enum ext_wifi_pkt_type |
Definition of protocol frame type.CNcomment:协议报文类型定义.CNend
| enum ext_wifi_scan_type |
Scan type enum.CNcomment:扫描类型.CNend
Set wpa-enterprise read callback.CNcomment:autorate配置速率模式函数接口.CNend
| value | [IN] Type #unsigned int, switch value.CNcomment:autorate配置速率模式函数接口.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| void uapi_csi_register_data_report_cb | ( | wifi_csi_data_cb | data_cb | ) |
function definition of wifi event.CNcommment:CSI注册回调函数接口定义.CNend
function definition of wifi event.CNcommment:设置低功耗函数接口定义.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
| iftype | [IN] Type ext_wifi_iftype, interface type. CNcomment:接口类型。CNend ie_index [IN] Type ext_wifi_extend_ie_index, Ie index, there are four indexes to choose。 CNcomment:ie索引,有四个索引可供选择。CNend frame_type_bitmap [IN] Type #const unsigned char, frame type bitmap,bit0 is beacon,bit1 is probe request, bit2 is probe response. CNcomment:帧类型,bit0代表beacon,bit1代表probe request,bit2代表probe response。CNend ie [IN] Type #const unsigned char *, user IE value.CNcomment:用户IE字段内容。CNend ie_len [IN] Type #unsigned short, user IE length.CNcomment:用户IE字段内容长度。CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
Get info of sta which ap connected to.CNcomment:获取ap连接的sta信息.CNend
| mac_addr | [IN] Type #char, mac address of connected sta. CNcomment:ap连接的sta的mac地址.CNend |
| rssi | [OUT] Type #signed char, signal strength of last packet. CNcomment: ap上一次接收相连的station报文的rssi.CNend |
| best_rate | [OUT] Type #unsigned int, best sending rate. CNcomment: ap与相连的station报文的最佳发送速率.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_ap_scan | ( | void | ) |
function definition of wifi event.CNcommment:AP扫描接口定义.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
| ifname | [IN] Type #const char *, device name. |
| en | [IN] Type #unsigned char, arp offload type, 1-on, 0-off. |
| ip | [IN] Type #unsigned int, ip address in network byte order, eg:192.168.50.4 -> 0x0432A8C0. |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| 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
| mode | [IN] Type #unsigned char , call mode, 1:direct and 0:create task[default]. CNcomment:回调调用方式,1:wpa线程直接调用,0:新建一个低优先级线程调用,默认.CNend |
| task_prio | [IN] Type #unsigned char , task priority, range(10-50) . CNcomment:新建线程优先级,取值范围(10-50).CNend |
| stack_size | [IN] Type #unsigned short , task stack size, more than 1K bytes, default: 2k. CNcomment:新建线程栈空间,需大于宏LOS_TASK_MIN_STACK_SIZE的大小,默认2k.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_csi_set_config | ( | const char * | ifname, |
| const ext_csi_config * | config | ||
| ) |
function definition of wifi event.CNcommment:设置CSI配置函数接口定义.CNend
| int uapi_wifi_csi_start | ( | void | ) |
function definition of wifi event.CNcommment:CSI启动函数接口定义.CNend
| int uapi_wifi_csi_stop | ( | void | ) |
function definition of wifi event.CNcommment:CSI关闭函数接口定义.CNend
| int uapi_wifi_deinit | ( | void | ) |
Wifi de-initialize.CNcomment:wifi去初始化.CNend
| NULL |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| 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
| iftype | [IN] Type ext_wifi_iftype, interface type. CNcomment:接口类型。CNend ie_index [IN] Type ext_wifi_extend_ie_index, Ie index, there are four indexes to choose。 CNcomment:ie索引,有四个索引可供选择。CNend frame_type_bitmap [IN] Type #const unsigned char, frame type bitmap,bit0 is beacon,bit1 is probe request, bit2 is probe response. CNcomment:帧类型,bit0代表beacon,bit1代表probe request,bit2代表probe response。CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
function definition of wifi event.CNcommment:设置算法抗干扰函数接口定义.CNend
| unsigned int uapi_wifi_force_scan_complete | ( | void | ) |
function definition of wifi event.CNcommment:扫描完成接口定义.CNend
| ext_wifi_bw uapi_wifi_get_bandwidth | ( | const td_char * | ifname, |
| td_u8 | ifname_len | ||
| ) |
Get bandwidth.CNcomment:获取带宽.CNend
| ifname | [IN] Type #const char *, interface name.CNcomment:接口名.CNend |
| ifname_len | [IN] Type #unsigned char, interface name length.CNcomment:接口名长度.CNend |
| #bandwidth | enum.CNcomment:带宽的枚举值.CNend |
Get channel.CNcomment:获取信道.CNend
| ifname | [IN] Type #const char *, interface name.CNcomment:接口名.CNend |
| ifname_len | [IN] Type #unsigned char, interface name length.CNcomment:接口名长度.CNend |
| EXT_WIFI_INVALID_CHANNEL | |
| #Other | chanel value. |
Get country code.CNcomment:获取国家码.CNend
| cc | [OUT] Type #char *, country code.CNcomment:国家码.CNend |
| len | [IN/OUT] Type #int *, country code length.CNcomment:国家码长度.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| unsigned char uapi_wifi_get_init_status | ( | void | ) |
Get wifi initialize status.CNcomment:获取wifi初始化状态.CNend
| NULL |
| #1 | Wifi is initialized.CNcoment:Wifi已经初始化.CNend |
| #0 | Wifi is not initialized.CNcoment:Wifi没有初始化.CNend |
| short uapi_wifi_get_mac_status_code | ( | void | ) |
Get Status Codes for Authentication and Association Frames. CNcomment:查询Authentication与Association帧status code.CNend
| NULL |
| #Status | Codes value |
| int uapi_wifi_get_scan_flag | ( | void | ) |
function definition of wifi event.CNcommment:获取扫描状态接口定义.CNend
function definition of wifi event.CNcommment:获取发送参数函数接口定义.CNend
Get tx power.CNcomment:获取发送功率上限.CNend
| ifname | [IN] Type #const char * interface name. |
| #tx | power value. |
Wifi initialize.CNcomment:wifi初始化.CNend
| vap_res_num | [IN] Type #const unsigned char, vap num[rang: 1-3].CNcomment:vap资源个数,取值[1-3].CNend |
| user_res_num | [IN] Type #const unsigned char, user resource num[1-7]. CNcomment:用户资源个数,多vap时共享,取值[1-7].CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_mac_phy_reset | ( | void | ) |
function definition of wifi event.CNcommment:mac_phy重置函数接口定义.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
| ifname | [IN] Type #const char *, device name. |
| en | [IN] Type #unsigned char, nd offload type, 1-on, 0-off. |
| ip6 | [IN] Type #unsigned char *, ipv6 address after parsing. eg:FE80::F011:31FF:FEE8:DB6E -> 0xfe80000000f01131fffee8db6e |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| 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
| ifname | [IN] Type #const char * interface name.CNcomment:接口名.CNend |
| enable | [IN] Type #int enable(1) or disable(0).CNcomment:开启/关闭.CNend |
| filter | [IN] Type #const wifi_ptype_filter_stru * filtered frame type enum.CNcomment:过滤列表.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_promis_set_rx_callback | ( | wifi_promis_cb | data_cb | ) |
Register receive callback in monitor mode.CNcomment:注册混杂模式的收包回调函数.CNend
| data_cb | [IN] Type wifi_promis_cb callback function pointer.CNcomment:混杂模式回调函数.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| 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
| psk_config | [IN] Type ext_wifi_sta_psk_config |
| get_psk | [IN/OUT] Type #unsigned char *,Psk to be obtained, length is 32 Bytes. The memory is requested by the caller. CNcomment:待获取psk,长度为32 Bytes。由调用者申请内存.CNend |
| psk_len | [IN] Type #unsigned int |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| 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
| psk_config | [IN] Type ext_wifi_sta_psk_config |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_register_event_callback | ( | uapi_wifi_event_cb | event_cb | ) |
register user callback interface.CNcomment:注册回调函数接口.CNend
| event_cb | [OUT] Type uapi_wifi_event_cb, event callback .CNcomment:回调函数.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| unsigned int uapi_wifi_scan_results_clear | ( | void | ) |
function definition of wifi event.CNcommment:删除驱动扫描链表接口定义.CNend
Set wifi aware enable.CNcomment:设置wifi aware使能.CNend
| ifname | [IN] Type #const char * interface name.CNcomment:接口名.CNend |
| enable | [IN] Type #int enable(1) or disable(2).CNcomment:开启/关闭.CNend |
| ratio | [IN] Type #int ratio(1-9) channel switching percentage.CNcomment:信道切换百分比.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| 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
| ifname | [IN] Type #const char * interface name.CNcomment:接口名.CNend |
| sdp_subscribe | [IN] Type #char * Subscription Service Account.CNcomment:订阅服务号.CNend |
| local_handle | [IN] Type #int local_handle local service number.CNcomment:本机服务号.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_send_custom_pkt | ( | const char * | ifname, |
| const unsigned char * | data, | ||
| unsigned int | len | ||
| ) |
Send a custom frame.CNcomment:发送用户定制报文.CNend
| ifname | [IN] Type #const char *, device name. CNcomment:接口名.CNend |
| data | [IN] Type #const unsigned char *, frame. CNcomment:帧内容.CNend |
| len | [IN] Type #unsigned int, frame length. CNcomment:帧长度.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_send_pkt | ( | osal_void * | dev, |
| const data_segment_t * | seg, | ||
| uint8_t | seg_len | ||
| ) |
获取数据发包.CNcomment:配置发包接口.CNend
| data_segment_t | [IN] Type #eth_data seg_len [IN] Type #length |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| td_s32 uapi_wifi_set_bandwidth | ( | const td_char * | ifname, |
| td_u8 | ifname_len, | ||
| ext_wifi_bw | bw | ||
| ) |
Set bandwidth.CNcomment:设置带宽.CNend
| ifname | [IN] Type #const char *, interface name.CNcomment:接口名.CNend |
| ifname_len | [IN] Type #unsigned char, interface name length.CNcomment:接口名长度.CNend |
| bw | [IN] Type ext_wifi_bw, bandwidth enum.CNcomment:带宽.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_set_brctl | ( | const char * | oper, |
| const char * | if_name | ||
| ) |
配置Repeater开关及接口.CNcomment:配置Repeater开关及接口.CNend
| oper | [IN] Type #const char *, identity string.CNcomment:配置操作.CNend if_name [IN] Type #const char *, identity string.CNcomment:接口名.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
Set cca threshold.CNcomment:设置CCA门限.CNend
| ifname | [IN] Type #const char *, device name. CNcomment:接口名.CNend |
| threshold | [IN] Type #char, threshold. CNcomment:门限值.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
Set channel.CNcomment:设置信道.CNend
| ifname | [IN] Type #const char *, interface name.CNcomment:接口名.CNend |
| ifname_len | [IN] Type #unsigned char, interface name length.CNcomment:接口名长度.CNend |
| channel | [IN] Type #int , listen channel.CNcomment:信道号.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
Set country code.CNcomment:设置国家码.CNend
| cc | [IN] Type #const char *, country code.CNcomment:国家码.CNend |
| cc_len | [IN] Type #unsigned char, country code length.CNcomment:国家码长度.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| 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
| pa_bias | [IN] Type #unsigned char, PA bias setting.0:0xfe83,default value.1:0xfcc3.Others:invalid. CNcomment:PA偏置,0:0xfe83,默认值;1:0xfcc3;其它值:不支持.CNend |
| osc_drv_vals | [IN] Type ext_wifi_xldo_voltage *, OSC driver values ch1~14. CNcomment:信道1~14的OSC驱动强度值.CNend |
| size | [IN] Type #unsigned char, OSC driver values' size.Should be 14. CNcomment:OSC驱动强度值数组大小,只能为14.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_set_mgmt_report | ( | wifi_rx_mgmt_cb | data_cb, |
| uint8_t | mode | ||
| ) |
Register receive callback for management frame.CNcomment:注册管理帧收包回调函数.CNend
| data_cb | [IN] Type wifi_rx_mgmt_cb callback function pointer.CNcomment:管理帧上报回调函数.CNend |
| mode | [IN] Mode of receiving management frame:上报管理帧模式.CNend |
| #EXT_OK | Excute successfully |
| #Other | Error code |
| uint32_t uapi_wifi_set_phy_txrate | ( | td_u8 | auto_rate, |
| ext_alg_param_stru * | alg_param | ||
| ) |
function definition of wifi event.CNcommment:设置phy发送速率函数接口定义.CNend
function definition of wifi event.CNcommment:设置报文重传函数接口定义.CNend
Open/close system power save.CNcomment:开启/关闭WiFi低功耗模式并配置预期休眠时间.CNend
| enable | [IN] Type #unsigned char, enable(1) or disable(0).CNcomment:开启/关闭WiFi低功耗.CNend |
| sleep_time | [IN] Type #unsigned int, expected sleep time(uint: ms). CNcomment:预期休眠时间(单位: 毫秒), 参考有效范围33ms~4000ms, 准确的时间根据dtim*beacon和sleep_time值计算, 关闭低功耗或者不配置有效休眠时间时需要将sleep_time配置为0(休眠时间由关联的ap决定).CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_set_pmf | ( | wifi_pmf_option_enum | pmf | ) |
Config pmf settings of sta.CNcomment:配置station的pmf.CNend
| pmf | [IN] Type wifi_pmf_option_enum, pmf enum value.CNcoment:pmf枚举值.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_set_psd_cb | ( | wifi_psd_cb | data_cb | ) |
Set psd callback.CNcomment:配置PSD回调.CNend
| data_cb | [IN] Type wifi_psd_cb CNcomment:配置PSD回调.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_set_psd_enable | ( | psd_option_param * | psd_option | ) |
Set psd enable mode.CNcomment:配置PSD状态函数接口.CNend
| psd_option | [IN] Type ext_psd_option_param CNcomment:配置PSD状态函数接口.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
Set retry params.CNcomment:设置软件重传策略.CNend
| ifname | [IN] Type #const char * interface name.CNcomment:接口名.CNend |
| type | [IN] Type #unsigned char retry type. CNcomment:0:次数重传(数据帧); 1:次数重传(管理帧); 2:时间重传.CNend |
| limit | [IN] Type #unsigned char limit value. CNcomment:重传次数(0~15次)/重传时间(0~200个时间粒度,时间粒度10ms).CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
function definition of wifi event.CNcommment:设置RTS阈值函数接口定义.CNend
| int uapi_wifi_set_scan_param | ( | const td_char * | ifname, |
| ext_wifi_scan_param_stru * | scan_param | ||
| ) |
Set scan.param.CNcomment:设置扫描参数.CNend
| ifname | [IN] Type #const char *, interface name.CNcomment:接口名.CNend |
| scan_param | [IN] Type ext_wifi_scan_param_stru *scan_param:扫描参数结构体.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
Set tcp mode.CNcomment:设置tpc开关.CNend
| ifname | [IN] Type #const char *, device name. CNcomment:接口名.CNend |
| ifname_len | [IN] Type #unsigned char, interface name length.CNcomment:接口名长度.CNend |
| tpc_value | [IN] Type #unsigned int, tpc_value. CNcomment:tpc开关.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
Set tx power offset.CNcomment:设置发送功率偏移.CNend
| ifname | [IN] Type #const char *, device name. CNcomment:接口名.CNend |
| offset | [IN] Type #signed short, offset. CNcomment:门限值.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
Set tx power.CNcomment:设置发送功率上限.CNend
| ifname | [IN] Type #const char * interface name. |
| power | [IN] Type #int maximum tx power value, range (0-23]dBm. |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_set_wow_pattern | ( | unsigned char | type, |
| unsigned char | index, | ||
| unsigned char * | pattern | ||
| ) |
Set wow switch.CNcomment:配置wow特定唤醒报文格式.CNend
| type | [IN] Type #unsigned char, 0:add. 1:del. 2:clr Others:invalid index [IN] Type #unsigned char, range [0-3]. Others:invalid
pattern [IN] Type #unsigned char *, 自定义唤醒报文格式, HEX格式字符串
|
| #EXT_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_set_wow_switch | ( | uint8_t | enable | ) |
Set wow switch.CNcomment:设置wow特性开关.CNend
| enable | [IN] Type #unsigned char,0:disable. 1:enable. Others:invalid |
| #EXT_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_softap_deauth_sta | ( | const unsigned char * | addr, |
| unsigned char | addr_len | ||
| ) |
Softap deauth user by mac address.CNcomment:softap指定断开连接的station网络.CNend
| addr | [IN] Type #const unsigned char *, station mac address.CNcomment:MAC地址.CNend |
| addr_len | [IN] Type #unsigned char, station mac address length, must be 6. CNcomment:MAC地址长度,必须为6.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| 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
| sta_list | [IN/OUT] Type ext_wifi_ap_sta_info *, station information.CNcomment:STA信息.CNend |
| sta_num | [IN/OUT] Type #unsigned int *, station number.CNcomment:STA个数.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| protocol_mode_enum uapi_wifi_softap_get_protocol_mode | ( | void | ) |
Get protocol mode of softap.CNcomment:获取softap接口的protocol模式.CNend
| NULL |
| protocol_mode_enum | protocol mode. If fail, return WIFI_MODE_UNDEFINE. |
| int uapi_wifi_softap_set_beacon_period | ( | int | beacon_period | ) |
Set softap's beacon interval.CNcomment:设置softap的beacon周期.CNend
| beacon_period | [IN] Type #int beacon period in milliseconds, range(33ms~1000ms), default(100ms) |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_softap_set_dtim_period | ( | int | dtim_period | ) |
Set softap's dtim count.CNcomment:设置softap的dtim周期.CNend
| dtim_period | [IN] Type #int, dtim period , range(1~30), default(2) |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_softap_set_group_rekey | ( | int | wifi_group_rekey | ) |
Set update time of softap's group key.CNcomment:配置softap组播秘钥更新时间.CNend
| wifi_group_rekey | [IN] Type #int, update time in seconds, range(30s-86400s), default(86400s) CNcomment:更新时间以秒为单位,范围(30s-86400s),默认(86400s).CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_softap_set_pairwise | ( | int | pairwise | ) |
Set softap pairwise.CNcomment:设置pairwise.CNend
| pairwise | [IN] Type #int, softap pairwise.CNcomment:softap pairwise.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_softap_set_protocol_mode | ( | protocol_mode_enum | mode | ) |
Set protocol mode of softap.CNcomment:设置softap接口的protocol模式.CNend
| mode | [IN] Type protocol_mode_enum protocol mode. |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_softap_set_shortgi | ( | int | flag | ) |
Set short-gi of softap.CNcomment:设置softap的SHORT-GI功能.CNend
| flag | [IN] Type #int, enable(1) or disable(0). default enable(1). CNcomment:使能标志,默认使能(1).CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_softap_start | ( | ext_wifi_softap_config * | conf, |
| char * | ifname, | ||
| int * | len | ||
| ) |
Start softap interface.CNcomment:开启SoftAP.CNend
| conf | [IN] Type ext_wifi_softap_config *, softap's configuration.CNcomment:SoftAP配置.CNend |
| ifname | [IN/OUT] Type #char *, interface name.CNcomment:接口名字.CNend |
| len | [IN/OUT] Type #int *, interface name length.CNcomment:接口名字长度.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_softap_stop | ( | void | ) |
Close softap interface.CNcomment:关闭SoftAP.CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_advance_scan | ( | ext_wifi_scan_params * | sp | ) |
Start station scanning with specified parameter.CNcomment:station执行带特定参数的扫描.CNend
| sp | [IN] Type ext_wifi_scan_params * parameters of scan.CNcomment:扫描网络参数设置.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_connect | ( | const ext_wifi_assoc_request * | req | ) |
sta start connect.CNcomment:station进行连接网络.CNend
| req | [IN] Type #const ext_wifi_assoc_request * connect parameters of network.CNcomment:连接网络参数设置.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_disconnect | ( | void | ) |
Disconnect from network.CNcomment:station断开相连的网络.CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_ent_set_eap_method | ( | ext_wifi_eap_method | method | ) |
Set wpa-enterprise eap method.CNcomment:设置企业级方法.CNend
| method | [IN] Type ext_wifi_eap_method, eap method type.CNcomment:eap方法类型.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_sta_ent_set_identity | ( | const char * | identity, |
| unsigned int | len | ||
| ) |
Set wpa-enterprise identity.CNcomment:设置企业级身份信息.CNend
| identity | [IN] Type #const char *, identity string.CNcomment:身份字符串.CNend |
| len | [IN] Type #unsigned int, identity string length.CNcomment:身份字符串长度.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_sta_ent_set_import_callback | ( | ext_wifi_ent_import_callback * | cb | ) |
Set wpa-enterprise read callback.CNcomment:设置企业级证书/密钥读取的回调接口.CNend
| cb | [IN] Type ext_wifi_ent_import_callback *, read callback.CNcomment:回调接口.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_sta_fast_connect | ( | const ext_wifi_fast_assoc_request * | fast_request | ) |
Start fast connect.CNcomment:station进行快速连接网络.CNend
| fast_request | [IN] Type #const ext_wifi_fast_assoc_request *, fast connect parameters. CNcomment:快速连接网络参数.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_get_ap_rssi | ( | void | ) |
Get rssi value.CNcomment:获取rssi值.CNend
| NULL |
| #0x7F | Invalid value. |
| #Other | rssi |
| int uapi_wifi_sta_get_ap_snr | ( | void | ) |
Get snr value.CNcomment:获取snr值.CNend
| NULL |
| #Other | snr |
| int uapi_wifi_sta_get_connect_info | ( | ext_wifi_status * | connect_status | ) |
Get status of sta.CNcomment:获取station连接的网络状态.CNend
| connect_status | [IN/OUT] Type ext_wifi_status *, connect status, memory is requested by the caller. CNcomment:连接状态, 由调用者申请内存.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| protocol_mode_enum uapi_wifi_sta_get_protocol_mode | ( | void | ) |
Get protocol mode of.CNcomment:获取station接口的protocol模式.CNend
| NULL |
| protocol_mode_enum | protocol mode.If fail, return EXT_WIFI_PHY_MODE_BUTT. |
| int uapi_wifi_sta_raw_scan | ( | ext_wifi_scan_params * | sp, |
| ext_wifi_scan_no_save_cb | cb | ||
| ) |
function definition of wifi event.CNcommment:可自定义回调函数扫描接口定义.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
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_scan | ( | void | ) |
Start sta basic scanning in all channels.CNcomment:station进行全信道基础扫描.CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_scan_results | ( | ext_wifi_ap_info * | ap_list, |
| unsigned int * | ap_num | ||
| ) |
sta start scan.CNcomment:station进行扫描.CNend
| ap_list | [IN/OUT] Type ext_wifi_ap_info * scan result.CNcomment:扫描的结果.CNend |
| ap_num | [IN/OUT] Type #unsigned int *, number of scan result.CNcomment:扫描到的网络数目.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_scan_results_clear | ( | void | ) |
Clear sta scan result.CNcomment:清除sta扫描链表.CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| 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
| timer | [IN] Type #unsigned char CNcomment:低功耗定时器周期,默认50ms,取值[0-100]ms.CNend |
| time_cnt | [IN] Type #unsigned char CNcomment:低功耗定时器重启次数,达到该次数后wifi无数据收发则进入休眠, 默认为4,取值[0-10].CNend |
| bcn_timeout | [IN] Type #unsigned char CNcomment:等待接收beacon的超时时间,默认10ms,取值[0-100]ms.CNend |
| mcast_timeout | [IN] Type #unsigned char CNcomment:等待接收组播/广播帧的超时时间,默认30ms,取值[0-100]ms.CNend |
| EXT_WIFI_OK | Excute successfully |
| #Other | Error code |
| int uapi_wifi_sta_set_protocol_mode | ( | protocol_mode_enum | mode | ) |
Set protocol mode of sta.CNcomment:设置station接口的protocol模式.CNend
| mode | [IN] Type protocol_mode_enum, protocol mode. |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| 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
| enable | [IN] Type #int enable reconnect.0-disable/1-enable.CNcomment:使能重连网络参数.CNend |
| seconds | [IN] Type #unsigned int reconnect timeout in seconds for once, range:[2-65535]. CNcomment:单次重连超时时间,取值[2-65535].CNend |
| period | [IN] Type #unsigned int reconnect period in seconds, range:[1-65535]. CNcomment:重连间隔周期,取值[1-65535].CNend |
| max_try_count | [IN] Type #unsigned int max reconnect try count number,range:[1-65535]. CNcomment:最大重连次数,取值[1-65535].CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_start | ( | char * | ifname, |
| int * | len | ||
| ) |
Start wifi station.CNcomment:开启STA.CNend
| ifname | [IN/OUT] Type #char *, device name.CNcomment:接口名.CNend |
| len | [IN/OUT] Type #int *, length of device name.CNcomment:接口名长度.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_stop | ( | void | ) |
Close wifi station.CNcomment:关闭STA.CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_wps_pbc | ( | const unsigned char * | bssid, |
| unsigned int | bssid_len | ||
| ) |
Start pbc connect in WPS.CNcomment:设置WPS进行pbc连接.CNend
| bssid | [IN] Type #const unsigned char * mac address |
| bssid_len | [IN] Type #unsigned int the length of mac address |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| 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
| pin | [IN] Type #const char * pin code |
| bssid | [IN] Type #const unsigned char * mac address |
| bssid_len | [IN] Type #unsinged int the length of mac address |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_sta_wps_pin_get | ( | char * | pin, |
| unsigned int | len | ||
| ) |
Get pin code.CNcomment:WPS获取pin码.CNend
| pin | [IN/OUT] Type #char *, pin code buffer, should be obtained, length is 9 Bytes. The memory is requested by the caller. CNcomment:待获取pin码,长度为9 Bytes。由调用者申请内存.CNend |
| len | [IN] Type #unsigned int, length of pin code。CNcomment:pin码的长度.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_wnm_bss_query | ( | int | reason_code, |
| int | candidate_list | ||
| ) |
Clear sta scan result.CNcomment:发送bss query报文.CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int uapi_wifi_wnm_notify | ( | const char * | param, |
| unsigned int | len | ||
| ) |
Clear sta scan result.CNcomment:发送wnm notify query报文.CNend
| NULL |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| struct ext_wifi_dev * wifi_dev_get | ( | ext_wifi_iftype | iftype | ) |
Get wifi device config.CNcomment:获取wifi device的配置.CNend
| iftype | [IN] Type ext_wifi_iftype, iftype enum value.CNcoment:iftype枚举值.CNend |
| #struct | ext_wifi_dev * Execute successfully. |
| NULL | Execute failed. |
| int wifi_softap_set_sae_pwe | ( | wifi_sae_pwe_option_enum | pwe | ) |
Config sae pwe settings of softap.CNcomment:配置softap的sae pwe.CNend
| pwe | [IN] Type wifi_sae_pwe_option_enum, sae pwe enum value.CNcoment:sae pwe枚举值.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |
| int wifi_sta_set_sae_pwe | ( | wifi_sae_pwe_option_enum | pwe | ) |
Config sae pwe settings of sta.CNcomment:配置station的sae pwe.CNend
| pwe | [IN] Type wifi_sae_pwe_option_enum, sae pwe enum value.CNcoment:sae pwe枚举值.CNend |
| EXT_WIFI_OK | Execute successfully. |
| EXT_WIFI_FAIL | Execute failed. |