wpa_supplicant / hostapd 2.0
Data Fields

p2p_group_config Struct Reference

P2P group configuration. More...

#include <p2p.h>

Data Fields

int persistent_group
 Whether the group is persistent.
u8 interface_addr [ETH_ALEN]
 P2P Interface Address of the group.
unsigned int max_clients
 Maximum number of clients in the group.
void * cb_ctx
 Context to use with callback functions.
void(* ie_update )(void *ctx, struct wpabuf *beacon_ies, struct wpabuf *proberesp_ies)
 Notification of IE update.
void(* idle_update )(void *ctx, int idle)
 Notification of changes in group idle state.

Detailed Description

P2P group configuration.

This configuration is provided to the P2P module during initialization of the per-group information with p2p_group_init().


Field Documentation

void(* p2p_group_config::idle_update)(void *ctx, int idle)

Notification of changes in group idle state.

Parameters:
ctxCallback context from cb_ctx
idleWhether the group is idle (no associated stations)
void(* p2p_group_config::ie_update)(void *ctx, struct wpabuf *beacon_ies, struct wpabuf *proberesp_ies)

Notification of IE update.

Parameters:
ctxCallback context from cb_ctx
beacon_iesP2P IE for Beacon frames or NULL if no change
proberesp_iesP2P Ie for Probe Response frames

P2P module uses this callback function to notify whenever the P2P IE in Beacon or Probe Response frames should be updated based on group events.

The callee is responsible for freeing the returned buffer(s) with wpabuf_free().

Whether the group is persistent.

0 = not a persistent group 1 = persistent group without persistent reconnect 2 = persistent group with persistent reconnect


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines