wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Fields
wps_config Struct Reference

WPS configuration for a single registration protocol run. More...

#include <wps.h>

Data Fields

struct wps_contextwps
 Pointer to long term WPS context.
 
int registrar
 Whether this end is a Registrar.
 
const u8 * pin
 Enrollee Device Password (NULL for Registrar or PBC)
 
size_t pin_len
 Length on pin in octets.
 
int pbc
 Whether this is protocol run uses PBC.
 
const struct wpabufassoc_wps_ie
 assoc_wps_ie: (Re)AssocReq WPS IE (in AP; NULL if not AP)
 
const struct wps_credentialnew_ap_settings
 New AP settings (NULL if not used) More...
 
const u8 * peer_addr
 peer_addr: MAC address of the peer in AP; NULL if not AP
 
int use_psk_key
 Use PSK format key in Credential. More...
 
u16 dev_pw_id
 Device Password ID for Enrollee when PIN is used.
 
const u8 * p2p_dev_addr
 P2P Device Address from (Re)Association Request. More...
 
int pbc_in_m1
 Do not remove PushButton config method in M1 (AP) More...
 
const u8 * peer_pubkey_hash
 Peer public key hash or NULL if not known.
 

Detailed Description

WPS configuration for a single registration protocol run.

Field Documentation

const struct wps_credential* wps_config::new_ap_settings

New AP settings (NULL if not used)

This parameter provides new AP settings when using a wireless stations as a Registrar to configure the AP. NULL means that AP will not be reconfigured, i.e., the station will only learn the current AP settings by using AP PIN.

const u8* wps_config::p2p_dev_addr

P2P Device Address from (Re)Association Request.

On AP/GO, this is set to the P2P Device Address of the associating P2P client if a P2P IE is included in the (Re)Association Request frame and the P2P Device Address is included. Otherwise, this is set to NULL to indicate the station does not have a P2P Device Address.

int wps_config::pbc_in_m1

Do not remove PushButton config method in M1 (AP)

This can be used to enable a workaround to allow Windows 7 to use PBC with the AP.

int wps_config::use_psk_key

Use PSK format key in Credential.

Force PSK format to be used instead of ASCII passphrase when building Credential for an Enrollee. The PSK value is set in struct wpa_context::psk.


The documentation for this struct was generated from the following file: