WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
WiFi Basic Settings

结构体

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)
 

枚举

enum  ext_wifi_p2p_peer_connect_choose { EXT_WIFI_P2P_PEER_CONNECT_AUTO , EXT_WIFI_P2P_PEER_CONNECT_MANUAL , EXT_WIFI_P2P_PEER_CONNECT_BUTT }
 
enum  ext_wifi_p2p_mode { EXT_WIFI_P2P_MODE_GC , EXT_WIFI_P2P_MODE_GO , EXT_WIFI_P2P_DEVICE_ONLY , EXT_WIFI_P2P_MODE_BUTT }
 
enum  ext_wifi_p2p_state { EXT_WIFI_P2P_DISCONNECTED , EXT_WIFI_P2P_CONNECTED , EXT_WIFI_P2P_CONNECTING , EXT_WIFI_P2P_CONN_STATUS_BUTT }
 
enum  wifi_mode {
  WIFI_MODE_INFRA = 0 , WIFI_MODE_IBSS = 1 , WIFI_MODE_AP = 2 , WIFI_MODE_P2P_GO = 3 ,
  WIFI_MODE_P2P_GROUP_FORMATION = 4 , WIFI_MODE_MESH = 5
}
 

函数

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
 

详细描述

宏定义说明

◆ P2P_INVALID_VAL

#define P2P_INVALID_VAL   (-1)

p2p invalid value.CNcomment:P2P无效参数CNend

◆ WPS_DEV_NAME_MAX_LEN

#define WPS_DEV_NAME_MAX_LEN   32

max wps dev name length.CNcomment:WPS dev name最大长度CNend

◆ WPS_IP_MAX_LEN

#define WPS_IP_MAX_LEN   15

max wps ip length.CNcomment:WPS IP最大长度CNend

◆ WPS_MANUFACTURER_MAX_LEN

#define WPS_MANUFACTURER_MAX_LEN   64

max wps manufacturer length.CNcomment:WPS manufacturer最大长度CNend

◆ WPS_MODE_MAX_LEN

#define WPS_MODE_MAX_LEN   15

max wps mode length.CNcomment:WPS mode最大长度CNend

◆ WPS_MODEL_NAME_MAX_LEN

#define WPS_MODEL_NAME_MAX_LEN   32

max wps model name length.CNcomment:WPS model name最大长度CNend

◆ WPS_MODEL_NUMBER_MAX_LEN

#define WPS_MODEL_NUMBER_MAX_LEN   32

max wps model number length.CNcomment:WPS model number最大长度CNend

◆ WPS_PINCODE_MAX_LEN

#define WPS_PINCODE_MAX_LEN   9

max wps ip length.CNcomment:WPS IP最大长度CNend

◆ WPS_SERIAL_NUMBER_MAX_LEN

#define WPS_SERIAL_NUMBER_MAX_LEN   32

max wps serial number length.CNcomment:WPS serial number最大长度CNend

◆ WPS_STATE_MAX_LEN

#define WPS_STATE_MAX_LEN   19

max wps state length.CNcomment:WPS state最大长度CNend

枚举类型说明

◆ ext_wifi_p2p_mode

p2p mode.CNcomment:p2p模式。

枚举值
EXT_WIFI_P2P_MODE_GC 

gc mode. CNcomment: gc 模式.CNend

EXT_WIFI_P2P_MODE_GO 

go mode. CNcomment: go 模式.CNend

EXT_WIFI_P2P_DEVICE_ONLY 

group in process. CNcomment: 正在创建组.CNend

EXT_WIFI_P2P_MODE_BUTT 

◆ ext_wifi_p2p_peer_connect_choose

the peer connect flag.CNcomment:p2p对端连接标志

枚举值
EXT_WIFI_P2P_PEER_CONNECT_AUTO 

automatically accept connections. CNcomment: 自动接受连接.CNend

EXT_WIFI_P2P_PEER_CONNECT_MANUAL 

manually accept connections. CNcomment: 手动接受连接.CNend

EXT_WIFI_P2P_PEER_CONNECT_BUTT 

◆ ext_wifi_p2p_state

p2p Connection state.CNcomment:p2p连接状态。

枚举值
EXT_WIFI_P2P_DISCONNECTED 

disconnect. CNcomment: 断开连接状态.CNend

EXT_WIFI_P2P_CONNECTED 

connected. CNcomment: 连接完成.CNend

EXT_WIFI_P2P_CONNECTING 

connecting. CNcomment: 正在连接.CNend

EXT_WIFI_P2P_CONN_STATUS_BUTT 

◆ wifi_mode

enum wifi_mode

wifi mode.CNcomment:wifi模式。

枚举值
WIFI_MODE_INFRA 

infrastructure mode, associate with an AP. CNcomment:基础结构模式,可以关联ap.CNend IBSS peer-to-peer. CNcomment: IBSS模式,点对点.CNend

WIFI_MODE_IBSS 

access point. CNcomment: 接入点.CNend

WIFI_MODE_AP 

P2P Group Owner. CNcomment: p2p组拥有者.CNend

WIFI_MODE_P2P_GO 

P2P Group Formation. CNcomment: p2p组形成.CNend

WIFI_MODE_P2P_GROUP_FORMATION 

mesh. CNcomment: mesh.CNend

WIFI_MODE_MESH 

函数说明

◆ uapi_wifi_get_peer_connect_choose()

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

Description:
Get the status that P2P automatically accepts connections or manually receives connections. CNcomment:返回目前p2p是自动接收连接还是手动接收连接.CNend
注意
NULL
参数
NULL
返回值
EXT_WIFI_P2P_PEER_CONNECT_AUTOor EXT_WIFI_P2P_PEER_CONNECT_MANUAL.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_cancel()

int uapi_wifi_p2p_cancel ( void  )

Cancel an ongoing P2P group formation and joining-a-group related operation. CNcomment:取消正在进行的P2P群组组建和入群相关操作。CNend

Description:
Cancel an ongoing P2P group formation and joining-a-group related operation. CNcomment:取消正在进行的P2P群组组建和入群相关操作。CNend
注意
NULL
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_connect()

int uapi_wifi_p2p_connect ( ext_wifi_p2p_connect  con)

Connect to specific p2p device.CNcomment:连接指定的p2p设备。CNend

Description:
Connect to specific p2p device.CNcomment:连接指定的p2p设备。CNend
注意
Address length must be 6 bytes.CNcomment:地址长度必须为6字节。CNend
;
参数
con[IN] Type ext_wifi_p2p_connect,associated parameter structure.CNcomment:p2p连接入参结构体。CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_del_persistent_info()

int uapi_wifi_p2p_del_persistent_info ( int  id)

Get the configuration information of P2P persistent network.CNcomment: 删除永久网络信息。CNend

Description:
network id.
注意
NULL
参数
id[IN] Type #int, network id.
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_find()

int uapi_wifi_p2p_find ( int  sec)

Start p2p scan.CNcomment:开始p2p查找 。CNend

Description:
Start p2p scan.CNcomment:开始p2p查找 。CNend
注意
sec: The value range is a positive integer starting from 5 to 120. CNcomment:取值范围为从5到120的正整数。CNend
参数
sec[IN] Type int, scan time(unit s).CNcomment:查找时间。CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_get_connected_client()

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

Description:
Get all client's information of p2p go .CNcomment:p2p go获取已连接的client的信息.CNend
注意
1.client_list: malloc by user.CNcomment:1.连接client参数。由用户动态申请。CNend
2.client_list: max size is ext_wifi_p2p_client_info * 4. CNcomment:2.client_list 足够的结构体大小,最大为ext_wifi_p2p_client_info * 4。CNend
3.client_num:parameters can be passed in to specify the number of connected client.The maximum is 4. CNcomment:3.可以传入参数,指定获取已接入的client个数,最大为4。CNend
4.client_num should be the same with number of ext_wifi_p2p_client_info struct applied, Otherwise, it will cause memory overflow.
CNcomment:4.client_num和申请的ext_wifi_p2p_client_info结构体数量一致,否则可能造成内存溢出。CNend
5.Only the client that are successfully associated are displayed. CNcomment:5.只显示关联成功的client。CNend
参数
client_list[IN/OUT] Type ext_wifi_p2p_client_info *, client information.CNcomment:client信息.CNend
client_num[IN/OUT] Type #unsigned int *, client number.CNcomment:client个数.CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_get_persistent_conf()

int uapi_wifi_p2p_get_persistent_conf ( p2p_user_persistent conf)

Get the configuration information of P2P persistent network.CNcomment:获取p2p永久网络配置信息。CNend

Description:NULL
注意
1.The persisetnt network information obtained is used to save it in NV and cannot be modified. Otherwise, it may cause a memory error. CNcomment:1.获取的永久网络信息,用于保存在nv中,不能修改,否则或造成内存错误.CNend 2.It need to obtain the permanent network configuration before p2pstop, otherwise the persistent data will be cleared to 0 CNcomment:2.需要在p2pstop之前获取数据,否则永久网络数据会被清除。CNend
参数
conf[IN] Type p2p_user_persistent *, configuration need be got.
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_get_persistent_info()

int uapi_wifi_p2p_get_persistent_info ( ext_p2p_persistent_group info,
int *  info_num 
)

Get the nformation of P2P persistent network.CNcomment:获取永久网络信息给用户。CNend

Description:NULL
注意
NULL
参数
info[IN/OUT] Type ext_p2p_persistent_group *, infomation of persistent group. info_num [IN/OUT] Type #int *, number of persistent group.
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_get_user_config()

int uapi_wifi_p2p_get_user_config ( ext_wifi_p2p_user_conf GetConfig)

Get p2p configuration.CNcomment:获取p2p的参数。CNend

Description:
Get p2p configuration.CNcomment:获取p2p的参数。CNend
注意
NULL
参数
updateConfig[OUT] Type ext_wifi_p2p_user_conf.
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_invite()

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

Description:
1.Enabling a persistent p2p network.CNcomment:启用永久网络。CNend 2.Invite other devices to join the group.CNcomment:邀请其他设备加入网络。CNend
注意
Address length must be 6 bytes.CNcomment:地址长度必须为6字节。CNend
;
参数
persistent_id[IN] Type #int connect network for persistent save value. CNcomment:永久网络id,邀请其他网络的时候为-1。CNend peer_addr [IN] Type #const unsigned char * peer mac address.CNcomment:对端device地址。CNend addr_len [IN] Type #unsigned char len of peer mac address. CNcomment:对端device地址长度。CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_listen()

int uapi_wifi_p2p_listen ( int  period,
int  interval 
)

Start p2p listen.CNcomment:开始p2p监听。CNend

Description:
Start p2p listen.CNcomment:开始p2p监听。CNend
注意
1.period should be less than interval.CNcomment:1.period应该小于interval。CNend
; 2.Both period and interval should be positive numbers,max num is 65535. CNcomment:2.period和interval都为正数,最大值为65535。CNend
; 3.When the period and interval are both 0, the listen stops. CNcomment:3.当period和interval都为0的时候,监听停止。CNend
;
参数
period[IN] Type int, listen time once(int ms). CNcomment:每次监听时间。CNend interval [IN] Type int, listen time interval once (int ms). CNcomment:每次间隔时间时间。CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_log_level()

int uapi_wifi_p2p_log_level ( char *  log_level)

Set p2p log level.CNcomment:设置P2P的日志级别。CNend

Description:
Set p2p log level.CNcomment:设置P2P的日志级别。CNend
注意
NULL
参数
log_level
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_peers()

int uapi_wifi_p2p_peers ( ext_wifi_p2p_peer_info p2pList,
unsigned int *  peer_num 
)

show information of peer.CNcomment:显示对端信息.CNend

Description:
show information of peer.CNcomment:显示对端信息.CNend
注意
1. The memories of <p2pList> and <peer_num> memories are requested by the caller.
The <p2pList> size up to : OAL_SIZEOF(ext_wifi_p2p_peer_info p2pList) * 32.
CNcomment:1. <p2pList>和<peer_num>由调用者申请内存, <p2pList>size最大为:OAL_SIZEOF(ext_wifi_p2p_peer_info p2pList) * 32.CNend
  1. peer_num: parameters can be passed in to specify the number of find results.The maximum is 32.
    CNcomment:2. peer_num: 可以传入参数,指定获取扫描到的结果数量,最大为32。CNend
  2. peer_num should be same with number of ext_wifi_ap_info structures applied, Otherwise, it will cause memory overflow.
    CNcomment:3. peer_num和申请的ext_wifi_p2p_peer_info结构体数量一致,否则可能造成内存溢出。CNend
参数
p2pList[IN/OUT] Type ext_wifi_p2p_peer_info * p2p find result.CNcomment:p2p发现的结果.CNend
peer_num[IN/OUT] Type #unsigned int *, number of scan result.CNcomment:p2p发现的网络数目.CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_reject()

int uapi_wifi_p2p_reject ( const unsigned char *  peer_addr,
unsigned char  addr_len 
)

reject to specific p2p device.CNcomment:拒绝指定的p2p设备。CNend

Description:
reject to specific p2p device.CNcomment:拒绝指定的p2p设备。CNend
注意
Address length must be 6 bytes.CNcomment:地址长度必须为6字节。CNend
;
参数
peer_addr[IN] Type #const unsigned char *, peer device address.CNcomment:对端device地址。CNend addr_len [IN] Type #unsigned char , len of peer device address .CNcomment:对端device地址长度。CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_remove_client()

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

Description:
go deauth user by peer device address.CNcomment:go指定断开连接的client网络.CNend
注意
NULL
参数
peer_dev_addr[IN] Type #const unsigned char *, gc mac address.CNcomment:MAC地址.CNend addr_len [IN] Type #unsigned char, len of gc mac address.CNcomment:MAC地址.CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
  • soc_p2p_api.h: WiFi API
参见
NULL
自从

◆ uapi_wifi_p2p_remove_group()

int uapi_wifi_p2p_remove_group ( void  )

disconncet for p2p network.CNcomment:断开p2p连接。CNend

Description:
disconncet for p2p network.CNcomment:断开p2p连接。CNend
注意
NULL
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_set_persistent_conf()

int uapi_wifi_p2p_set_persistent_conf ( p2p_user_persistent  conf)

Get the configuration information of P2P persistent network.CNcomment:设置p2p永久网络配置信息。CNend

Description:NULL
注意
The set permanent network information should be consistent with the obtained information, otherwise it will cause memory error CNcomment:设置的永久网络信息,要和获取的一致,否则或造成内存错误.CNend
参数
conf[IN] Type p2p_user_persistent, configuration need be set.
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_start()

int uapi_wifi_p2p_start ( char *  ifname,
int *  len 
)

Start Start wifi p2p.CNcomment:开启P2P.CNend

Description:
Start wifi p2p.CNcomment:开启P2P.CNend
注意
1. Multiple interfaces of the same type are not supported.CNcomment:1. 不支持使用多个同类型接口.CNend
  1. Dual interface coexistence support: STA + P2P. CNcomment:2. 双接口共存支持:STA + P2P.CNend
  2. The memories of <ifname> and <len> should be requested by the caller, the input value of len must be the same as the length of ifname (The minimum length is 5 bytes and the recommended length is 17 bytes).
    CNcomment:3. <ifname>和<len>由调用者申请内存,用户写入len的值必须与ifname长度一致。 (最小长度是5字节,建议长度为17Bytes).CNend
  3. This is a blocking function.CNcomment:4.此函数为阻塞函数.CNend
参数
ifname[IN/OUT] Type #char *, device name.CNcomment:接口名.CNend
len[IN/OUT] Type #int *, length of device name.CNcomment:接口名长度.CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_status()

int uapi_wifi_p2p_status ( ext_wifi_p2p_status_info status)

Show connect status of p2p.CNcomment:显示p2p的连接状态信息。CNend

Description:
Show connect status of p2p.CNcomment:显示p2p的连接状态信息。CNend
注意
NULL
参数
status[OUT] Type ext_wifi_p2p_status_info *, device information.
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_stop()

int uapi_wifi_p2p_stop ( void  )

Close wifi p2p.CNcomment:关闭P2P.CNend

Description:
Close wifi p2p.CNcomment:关闭P2P.CNend
注意
1. This is a blocking function.CNcomment:1.此函数为阻塞函数.CNend
参数
NULL
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_stop_find()

int uapi_wifi_p2p_stop_find ( void  )

Stop p2p find.CNcomment:停止p2p查找。CNend

Description:
Stop p2p find.CNcomment:停止p2p查找。CNend
注意
NULL
参数
NULL
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_user_accept()

int uapi_wifi_p2p_user_accept ( ext_wifi_p2p_connect  con,
int  assoc 
)

user accept p2p .CNcomment:p2p是否接受连接。CNend

Description:
user accept p2p.
注意
NULL
参数
con[IN] Type ext_wifi_p2p_connect, associated parameter structure. CNcomment:连接入参结构体。CNend assoc [IN] Type #int assoc, accept or reject.CNcomment:p2p是否接受连接。CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
参见
NULL
自从

◆ uapi_wifi_p2p_user_config()

int uapi_wifi_p2p_user_config ( ext_wifi_p2p_user_conf  updateConfig)

Update p2p configuration.CNcomment:p2p可修改的参数。CNend

Description:
Update p2p configuration.CNcomment:p2p可修改的参数。CNend
注意
NULL
参数
updateConfig[IN] Type ext_wifi_p2p_user_conf, configuration need update.
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_p2p_wps_pbc()

int uapi_wifi_p2p_wps_pbc ( void  )

Starting WPS PBC.CNcomment: 启动wps pbc。CNend

Description:NULL.
注意
It can only be used when the device is go.CNcomment: 只有go的时候可以使用。CNend
参数
NULL
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从

◆ uapi_wifi_set_peer_connect_choose()

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

Description:
Set the status that P2P automatically accepts connections or manually receives connections. CNcomment:设置p2p是自动接收连接还是手动接收连接.CNend
注意
NULL
参数
flag[IN] Type ext_wifi_p2p_peer_connect_choose CNcomment:设置p2p是自动连接还是手动连接的标志.CNend
返回值
EXT_WIFI_OKExecute successfully.
EXT_WIFI_FAILExecute failed.
Dependency:
参见
NULL
自从