|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

结构体 | |
| struct | ext_wifi_p2p_peer_info |
| struct | ext_wifi_p2p_user_conf |
| struct | ext_wifi_p2p_status_info |
| struct | ext_wifi_p2p_dhcps_ifconfig |
| struct | ext_wifi_p2p_client_info |
| struct | ext_wifi_p2p_connect |
| struct | p2p_persistent_ssid |
| struct | p2p_persistent_config |
| struct | p2p_user_persistent |
| struct | ext_p2p_persistent_group |
宏定义 | |
| #define | WPS_DEV_NAME_MAX_LEN 32 |
| #define | WPS_SERIAL_NUMBER_MAX_LEN 32 |
| #define | WPS_MANUFACTURER_MAX_LEN 64 |
| #define | WPS_MODEL_NAME_MAX_LEN 32 |
| #define | WPS_MODEL_NUMBER_MAX_LEN 32 |
| #define | WPS_MODE_MAX_LEN 15 |
| #define | WPS_STATE_MAX_LEN 19 |
| #define | WPS_IP_MAX_LEN 15 |
| #define | WPS_PINCODE_MAX_LEN 9 |
| #define | P2P_INVALID_VAL (-1) |
| #define | P2P_MAC_LEN 6 |
| #define | P2P_MAX_SSID_LEN 32 |
| #define | WIFI_DEFAULT_P2P_MAX_NUM_CLIENT 4 |
| #define | WPS_DEV_TYPE_LEN 8 |
| #define | MAX_METHOND_CONFIG_LEN 44 |
| #define | PSK_LEN 32 |
| #define | MAX_CLINET_SAVE_ADDR_LEN 48 |
| #define | PREFIX_NAME_LEN 32 |
| #define | P2P_MAX_PERSISTENT_CNT 10 |
| #define | P2P_SCAN_DEVICE_LIMIT 32 |
函数 | |
| int | uapi_wifi_p2p_start (char *ifname, int *len) |
| Start Start wifi p2p.CNcomment:开启P2P.CNend | |
| int | uapi_wifi_p2p_stop (void) |
| Close wifi p2p.CNcomment:关闭P2P.CNend | |
| int | uapi_wifi_p2p_find (int sec) |
| Start p2p scan.CNcomment:开始p2p查找 。CNend | |
| int | uapi_wifi_p2p_listen (int period, int interval) |
| Start p2p listen.CNcomment:开始p2p监听。CNend | |
| int | uapi_wifi_p2p_stop_find (void) |
| Stop p2p find.CNcomment:停止p2p查找。CNend | |
| int | uapi_wifi_p2p_log_level (char *log_level) |
| Set p2p log level.CNcomment:设置P2P的日志级别。CNend | |
| int | uapi_wifi_p2p_connect (ext_wifi_p2p_connect con) |
| Connect to specific p2p device.CNcomment:连接指定的p2p设备。CNend | |
| int | uapi_wifi_p2p_reject (const unsigned char *peer_addr, unsigned char addr_len) |
| reject to specific p2p device.CNcomment:拒绝指定的p2p设备。CNend | |
| int | uapi_wifi_p2p_invite (int persistent_id, const unsigned char *peer_addr, unsigned char addr_len) |
| 1.Enabling a fixed p2p device network.CNcomment:启用永久网络。CNend 2.Invite other devices to join the group.CNcomment:邀请其他设备加入网络。CNend | |
| int | uapi_wifi_p2p_peers (ext_wifi_p2p_peer_info *p2pList, unsigned int *peer_num) |
| show information of peer.CNcomment:显示对端信息.CNend | |
| int | uapi_wifi_p2p_status (ext_wifi_p2p_status_info *status) |
| Show connect status of p2p.CNcomment:显示p2p的连接状态信息。CNend | |
| int | uapi_wifi_p2p_get_connected_client (ext_wifi_p2p_client_info *client_list, unsigned int *client_num) |
| Get all client's information of p2p go.CNcomment:p2p go获取已连接的client的信息.CNend | |
| int | uapi_wifi_p2p_remove_client (const unsigned char *peer_dev_addr, unsigned char addr_len) |
| go deauth user by peer device address.CNcomment:go指定断开连接的client网络.CNend | |
| int | uapi_wifi_p2p_cancel (void) |
| Cancel an ongoing P2P group formation and joining-a-group related operation. CNcomment:取消正在进行的P2P群组组建和入群相关操作。CNend | |
| int | uapi_wifi_p2p_remove_group (void) |
| disconncet for p2p network.CNcomment:断开p2p连接。CNend | |
| int | uapi_wifi_p2p_user_config (ext_wifi_p2p_user_conf updateConfig) |
| Update p2p configuration.CNcomment:p2p可修改的参数。CNend | |
| int | uapi_wifi_p2p_get_user_config (ext_wifi_p2p_user_conf *GetConfig) |
| Get p2p configuration.CNcomment:获取p2p的参数。CNend | |
| int | uapi_wifi_p2p_user_accept (ext_wifi_p2p_connect con, int assoc) |
| user accept p2p .CNcomment:p2p是否接受连接。CNend | |
| int | uapi_wifi_set_peer_connect_choose (ext_wifi_p2p_peer_connect_choose flag) |
| Set the status that P2P automatically accepts connections or manually receives connections. CNcomment:设置p2p是自动接收连接还是手动接收连接.CNend | |
| ext_wifi_p2p_peer_connect_choose | uapi_wifi_get_peer_connect_choose (void) |
| Get the status that P2P automatically accepts connections or manually receives connections. CNcomment:返回目前p2p是自动接收连接还是手动接收连接.CNend | |
| int | uapi_wifi_p2p_get_persistent_conf (p2p_user_persistent *conf) |
| Get the configuration information of P2P persistent network.CNcomment:获取p2p永久网络配置信息。CNend | |
| int | uapi_wifi_p2p_set_persistent_conf (p2p_user_persistent conf) |
| Get the configuration information of P2P persistent network.CNcomment:设置p2p永久网络配置信息。CNend | |
| int | uapi_wifi_p2p_get_persistent_info (ext_p2p_persistent_group *info, int *info_num) |
| Get the nformation of P2P persistent network.CNcomment:获取永久网络信息给用户。CNend | |
| int | uapi_wifi_p2p_del_persistent_info (int id) |
| Get the configuration information of P2P persistent network.CNcomment: 删除永久网络信息。CNend | |
| int | uapi_wifi_p2p_wps_pbc (void) |
| Starting WPS PBC.CNcomment: 启动wps pbc。CNend | |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2020-2023. All rights reserved. Description: header file for wifi p2p api.CNcomment:描述:WiFi p2p api接口头文件。CNend
Create: 2020-7-8
| #define P2P_SCAN_DEVICE_LIMIT 32 |
p2p max scan number of ap.CNcomment:p2p扫描结果的最多数目.CNend