wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
p2p_invitation.c File Reference

Wi-Fi Direct - P2P Invitation procedure. More...

#include "includes.h"
#include "common.h"
#include "common/ieee802_11_defs.h"
#include "common/wpa_ctrl.h"
#include "p2p_i.h"
#include "p2p.h"

Functions

void p2p_process_invitation_req (struct p2p_data *p2p, const u8 *sa, const u8 *data, size_t len, int rx_freq)
 
void p2p_process_invitation_resp (struct p2p_data *p2p, const u8 *sa, const u8 *data, size_t len)
 
int p2p_invite_send (struct p2p_data *p2p, struct p2p_device *dev, const u8 *go_dev_addr, int dev_pw_id)
 
void p2p_invitation_req_cb (struct p2p_data *p2p, int success)
 
void p2p_invitation_resp_cb (struct p2p_data *p2p, int success)
 
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)
 Invite a P2P Device into a group. More...
 

Detailed Description

Wi-Fi Direct - P2P Invitation procedure.

Function Documentation

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 
)

Invite a P2P Device into a group.

Parameters
p2pP2P module context from p2p_init()
peerDevice Address of the peer P2P Device
roleLocal role in the group
bssidGroup BSSID or NULL if not known
ssidGroup SSID
ssid_lenLength of ssid in octets
force_freqThe only allowed channel frequency in MHz or 0
go_dev_addrForced GO Device Address or NULL if none
persistent_groupWhether this is to reinvoke a persistent group
pref_freqPreferred operating frequency in MHz or 0 (this is only used if force_freq == 0)
dev_pw_idDevice Password ID from OOB Device Password (NFC) static handover case or -1 if not used
Returns
0 on success, -1 on failure