【MTK平台】【wpa_supplicant】关于wpa_supplicant_8/src/p2p/p2p_invitation.c文件的介绍

本文主要介绍external/wpa_supplicant_8/src/p2p/p2p_invitation.c文件

 这里主要介绍6个方法

1.p2p_invite //p2p邀请调用此方法

2.p2p_invite_send //对p2p_invite方法进行补充

3. p2p_process_invitation_resp

4.p2p_process_invitation_req

5.p2p_build_invitation_resp

6.p2p_build_invitation_req

先看p2p_invite 方法:

int p2p_invite(struct p2p_data *p2p, const u8 *peer, enum p2p_invite_role role,
	       const u8 *bssid, const u8 *ssid, size_t ssid_len,
	       unsigned int force_freq, const u8 *go_dev_addr,
	       int persistent_group, unsigned int pref_freq, int dev_pw_id)
{
	struct p2p_device *dev;

	p2p_dbg(p2p, "Request to invite peer " MACSTR " role=%d persistent=%d "
		"force_freq=%u allow_6ghz=%d",
		MAC2STR(peer), role, persistent_group, force_freq,
		p2p->allow_6ghz);
	if (bssid)//判断邀请的BSSID是否存在
		p2p_dbg(p2p, "Invitation for BSSID " MACSTR, MAC2STR(bssid));
	if (go_dev_

你可能感兴趣的:(WIFI,p2p,服务器,网络协议)