wpa_supplicant / hostapd 2.0
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 "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)
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)
 Invite a P2P Device into a group.

Detailed Description

Wi-Fi Direct - P2P Invitation procedure.

Copyright
Copyright (c) 2010, Atheros Communications

This software may be distributed under the terms of the BSD license. See README for more details.


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 
)

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
Returns:
0 on success, -1 on failure
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines