2008-11-23 12:34:26 -05:00
|
|
|
/*
|
|
|
|
* Wi-Fi Protected Setup
|
2008-11-28 13:50:08 -05:00
|
|
|
* Copyright (c) 2007-2008, Jouni Malinen <j@w1.fi>
|
2008-11-23 12:34:26 -05:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WPS_H
|
|
|
|
#define WPS_H
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
#include "wps_defs.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* enum wsc_op_code - EAP-WSC OP-Code values
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
enum wsc_op_code {
|
|
|
|
WSC_Start = 0x01,
|
|
|
|
WSC_ACK = 0x02,
|
|
|
|
WSC_NACK = 0x03,
|
|
|
|
WSC_MSG = 0x04,
|
|
|
|
WSC_Done = 0x05,
|
|
|
|
WSC_FRAG_ACK = 0x06
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wps_registrar;
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* struct wps_credential - WPS Credential
|
|
|
|
* @ssid: SSID
|
|
|
|
* @ssid_len: Length of SSID
|
|
|
|
* @auth_type: Authentication Type (WPS_AUTH_OPEN, .. flags)
|
|
|
|
* @encr_type: Encryption Type (WPS_ENCR_NONE, .. flags)
|
|
|
|
* @key_idx: Key index
|
|
|
|
* @key: Key
|
|
|
|
* @key_len: Key length in octets
|
|
|
|
* @mac_addr: MAC address of the peer
|
2009-01-17 15:17:12 -05:00
|
|
|
* @cred_attr: Unparsed Credential attribute data (used only in cred_cb());
|
|
|
|
* this may be %NULL, if not used
|
|
|
|
* @cred_attr_len: Length of cred_attr in octets
|
2009-01-03 12:50:49 -05:00
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
struct wps_credential {
|
|
|
|
u8 ssid[32];
|
|
|
|
size_t ssid_len;
|
|
|
|
u16 auth_type;
|
|
|
|
u16 encr_type;
|
|
|
|
u8 key_idx;
|
|
|
|
u8 key[64];
|
|
|
|
size_t key_len;
|
|
|
|
u8 mac_addr[ETH_ALEN];
|
2009-01-17 15:17:12 -05:00
|
|
|
const u8 *cred_attr;
|
|
|
|
size_t cred_attr_len;
|
2008-11-23 12:34:26 -05:00
|
|
|
};
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* struct wps_device_data - WPS Device Data
|
|
|
|
* @mac_addr: Device MAC address
|
|
|
|
* @device_name: Device Name (0..32 octets encoded in UTF-8)
|
|
|
|
* @manufacturer: Manufacturer (0..64 octets encoded in UTF-8)
|
|
|
|
* @model_name: Model Name (0..32 octets encoded in UTF-8)
|
|
|
|
* @model_number: Model Number (0..32 octets encoded in UTF-8)
|
|
|
|
* @serial_number: Serial Number (0..32 octets encoded in UTF-8)
|
|
|
|
* @categ: Primary Device Category
|
|
|
|
* @oui: Primary Device OUI
|
|
|
|
* @sub_categ: Primary Device Sub-Category
|
|
|
|
* @os_version: OS Version
|
|
|
|
* @rf_bands: RF bands (WPS_RF_24GHZ, WPS_RF_50GHZ flags)
|
|
|
|
*/
|
2008-11-29 06:21:28 -05:00
|
|
|
struct wps_device_data {
|
|
|
|
u8 mac_addr[ETH_ALEN];
|
|
|
|
char *device_name;
|
|
|
|
char *manufacturer;
|
|
|
|
char *model_name;
|
|
|
|
char *model_number;
|
|
|
|
char *serial_number;
|
|
|
|
u16 categ;
|
|
|
|
u32 oui;
|
|
|
|
u16 sub_categ;
|
|
|
|
u32 os_version;
|
2009-01-03 12:50:49 -05:00
|
|
|
u8 rf_bands;
|
2008-11-29 06:21:28 -05:00
|
|
|
};
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* struct wps_config - WPS configuration for a single registration protocol run
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
struct wps_config {
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* wps - Pointer to long term WPS context
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
struct wps_context *wps;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
2009-01-03 13:09:35 -05:00
|
|
|
* registrar - Whether this end is a Registrar
|
2009-01-03 12:50:49 -05:00
|
|
|
*/
|
2009-01-03 13:09:35 -05:00
|
|
|
int registrar;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* pin - Enrollee Device Password (%NULL for Registrar or PBC)
|
|
|
|
*/
|
|
|
|
const u8 *pin;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* pin_len - Length on pin in octets
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
size_t pin_len;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* pbc - Whether this is protocol run uses PBC
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
int pbc;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* assoc_wps_ie: (Re)AssocReq WPS IE (in AP; %NULL if not AP)
|
|
|
|
*/
|
|
|
|
const struct wpabuf *assoc_wps_ie;
|
2008-11-23 12:34:26 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
struct wps_data * wps_init(const struct wps_config *cfg);
|
|
|
|
|
|
|
|
void wps_deinit(struct wps_data *data);
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* enum wps_process_res - WPS message processing result
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
enum wps_process_res {
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* WPS_DONE - Processing done
|
|
|
|
*/
|
|
|
|
WPS_DONE,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* WPS_CONTINUE - Processing continues
|
|
|
|
*/
|
|
|
|
WPS_CONTINUE,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* WPS_FAILURE - Processing failed
|
|
|
|
*/
|
2009-01-03 12:52:20 -05:00
|
|
|
WPS_FAILURE
|
2008-11-23 12:34:26 -05:00
|
|
|
};
|
2009-01-03 12:50:49 -05:00
|
|
|
enum wps_process_res wps_process_msg(struct wps_data *wps,
|
|
|
|
enum wsc_op_code op_code,
|
2008-11-23 12:34:26 -05:00
|
|
|
const struct wpabuf *msg);
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
struct wpabuf * wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code);
|
2008-11-23 12:34:26 -05:00
|
|
|
|
2008-11-29 15:06:34 -05:00
|
|
|
int wps_is_selected_pbc_registrar(const struct wpabuf *msg);
|
|
|
|
int wps_is_selected_pin_registrar(const struct wpabuf *msg);
|
|
|
|
const u8 * wps_get_uuid_e(const struct wpabuf *msg);
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
struct wpabuf * wps_build_assoc_req_ie(enum wps_request_type req_type);
|
2008-11-29 06:21:28 -05:00
|
|
|
struct wpabuf * wps_build_probe_req_ie(int pbc, struct wps_device_data *dev,
|
2009-01-03 12:50:49 -05:00
|
|
|
const u8 *uuid,
|
|
|
|
enum wps_request_type req_type);
|
2008-11-23 12:34:26 -05:00
|
|
|
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* struct wps_registrar_config - WPS Registrar configuration
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
struct wps_registrar_config {
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* new_psk_cb - Callback for new PSK
|
|
|
|
* @ctx: Higher layer context data (cb_ctx)
|
|
|
|
* @mac_addr: MAC address of the Enrollee
|
|
|
|
* @psk: The new PSK
|
|
|
|
* @psk_len: The length of psk in octets
|
|
|
|
* Returns: 0 on success, -1 on failure
|
|
|
|
*
|
|
|
|
* This callback is called when a new per-device PSK is provisioned.
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *psk,
|
|
|
|
size_t psk_len);
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set_ie_cb - Callback for WPS IE changes
|
|
|
|
* @ctx: Higher layer context data (cb_ctx)
|
|
|
|
* @beacon_ie: WPS IE for Beacon
|
|
|
|
* @beacon_ie_len: WPS IE length for Beacon
|
|
|
|
* @probe_resp_ie: WPS IE for Probe Response
|
|
|
|
* @probe_resp_ie_len: WPS IE length for Probe Response
|
|
|
|
* Returns: 0 on success, -1 on failure
|
|
|
|
*
|
|
|
|
* This callback is called whenever the WPS IE in Beacon or Probe
|
|
|
|
* Response frames needs to be changed (AP only).
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
int (*set_ie_cb)(void *ctx, const u8 *beacon_ie, size_t beacon_ie_len,
|
|
|
|
const u8 *probe_resp_ie, size_t probe_resp_ie_len);
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* pin_needed_cb - Callback for requesting a PIN
|
|
|
|
* @ctx: Higher layer context data (cb_ctx)
|
|
|
|
* @uuid_e: UUID-E of the unknown Enrollee
|
|
|
|
* @dev: Device Data from the unknown Enrollee
|
|
|
|
*
|
|
|
|
* This callback is called whenever an unknown Enrollee requests to use
|
|
|
|
* PIN method and a matching PIN (Device Password) is not found in
|
|
|
|
* Registrar data.
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
void (*pin_needed_cb)(void *ctx, const u8 *uuid_e,
|
|
|
|
const struct wps_device_data *dev);
|
2009-01-03 12:50:49 -05:00
|
|
|
|
2009-01-21 06:48:10 -05:00
|
|
|
/**
|
|
|
|
* reg_success_cb - Callback for reporting successful registration
|
|
|
|
* @ctx: Higher layer context data (cb_ctx)
|
|
|
|
* @mac_addr: MAC address of the Enrollee
|
|
|
|
* @uuid_e: UUID-E of the Enrollee
|
|
|
|
*
|
|
|
|
* This callback is called whenever an Enrollee completes registration
|
|
|
|
* successfully.
|
|
|
|
*/
|
|
|
|
void (*reg_success_cb)(void *ctx, const u8 *mac_addr,
|
|
|
|
const u8 *uuid_e);
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* cb_ctx: Higher layer context data for Registrar callbacks
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
void *cb_ctx;
|
2009-01-16 15:50:41 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* skip_cred_build: Do not build credential
|
|
|
|
*
|
|
|
|
* This option can be used to disable internal code that builds
|
|
|
|
* Credential attribute into M8 based on the current network
|
|
|
|
* configuration and Enrollee capabilities. The extra_cred data will
|
|
|
|
* then be used as the Credential(s).
|
|
|
|
*/
|
|
|
|
int skip_cred_build;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* extra_cred: Additional Credential attribute(s)
|
|
|
|
*
|
|
|
|
* This optional data (set to %NULL to disable) can be used to add
|
|
|
|
* Credential attribute(s) for other networks into M8. If
|
|
|
|
* skip_cred_build is set, this will also override the automatically
|
|
|
|
* generated Credential attribute.
|
|
|
|
*/
|
|
|
|
const u8 *extra_cred;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* extra_cred_len: Length of extra_cred in octets
|
|
|
|
*/
|
|
|
|
size_t extra_cred_len;
|
2009-01-21 06:48:10 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* disable_auto_conf - Disable auto-configuration on first registration
|
|
|
|
*
|
|
|
|
* By default, the AP that is started in not configured state will
|
|
|
|
* generate a random PSK and move to configured state when the first
|
|
|
|
* registration protocol run is completed successfully. This option can
|
|
|
|
* be used to disable this functionality and leave it up to an external
|
|
|
|
* program to take care of configuration. This requires the extra_cred
|
|
|
|
* to be set with a suitable Credential and skip_cred_build being used.
|
|
|
|
*/
|
|
|
|
int disable_auto_conf;
|
2008-11-23 12:34:26 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* enum wps_event - WPS event types
|
|
|
|
*/
|
2008-12-18 14:58:42 -05:00
|
|
|
enum wps_event {
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* WPS_EV_M2D - M2D received (Registrar did not know us)
|
|
|
|
*/
|
2008-12-19 15:19:41 -05:00
|
|
|
WPS_EV_M2D,
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* WPS_EV_FAIL - Registration failed
|
|
|
|
*/
|
2008-12-19 15:34:18 -05:00
|
|
|
WPS_EV_FAIL,
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* WPS_EV_SUCCESS - Registration succeeded
|
|
|
|
*/
|
2008-12-19 15:34:18 -05:00
|
|
|
WPS_EV_SUCCESS
|
2008-12-18 14:58:42 -05:00
|
|
|
};
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* union wps_event_data - WPS event data
|
|
|
|
*/
|
2008-12-18 14:58:42 -05:00
|
|
|
union wps_event_data {
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* struct wps_event_m2d - M2D event data
|
|
|
|
*/
|
2008-12-18 14:58:42 -05:00
|
|
|
struct wps_event_m2d {
|
|
|
|
u16 config_methods;
|
|
|
|
const u8 *manufacturer;
|
|
|
|
size_t manufacturer_len;
|
|
|
|
const u8 *model_name;
|
|
|
|
size_t model_name_len;
|
|
|
|
const u8 *model_number;
|
|
|
|
size_t model_number_len;
|
|
|
|
const u8 *serial_number;
|
|
|
|
size_t serial_number_len;
|
|
|
|
const u8 *dev_name;
|
|
|
|
size_t dev_name_len;
|
|
|
|
const u8 *primary_dev_type; /* 8 octets */
|
|
|
|
u16 config_error;
|
|
|
|
u16 dev_password_id;
|
|
|
|
} m2d;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* struct wps_event_fail - Registration failure information
|
|
|
|
* @msg: enum wps_msg_type
|
|
|
|
*/
|
2008-12-19 15:19:41 -05:00
|
|
|
struct wps_event_fail {
|
2009-01-03 12:50:49 -05:00
|
|
|
int msg;
|
2008-12-19 15:19:41 -05:00
|
|
|
} fail;
|
2008-12-18 14:58:42 -05:00
|
|
|
};
|
|
|
|
|
2008-11-28 13:50:08 -05:00
|
|
|
/**
|
|
|
|
* struct wps_context - Long term WPS context data
|
|
|
|
*
|
|
|
|
* This data is stored at the higher layer Authenticator or Supplicant data
|
|
|
|
* structures and it is maintained over multiple registration protocol runs.
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
struct wps_context {
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* ap - Whether the local end is an access point
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
int ap;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* registrar - Pointer to WPS registrar data from wps_registrar_init()
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
struct wps_registrar *registrar;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* wps_state - Current WPS state
|
|
|
|
*/
|
|
|
|
enum wps_state wps_state;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ap_setup_locked - Whether AP setup is locked (only used at AP)
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
int ap_setup_locked;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* uuid - Own UUID
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
u8 uuid[16];
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* ssid - SSID
|
|
|
|
*
|
|
|
|
* This SSID is used by the Registrar to fill in information for
|
|
|
|
* Credentials. In addition, AP uses it when acting as an Enrollee to
|
|
|
|
* notify Registrar of the current configuration.
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
u8 ssid[32];
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* ssid_len - Length of ssid in octets
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
size_t ssid_len;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* dev - Own WPS device data
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
struct wps_device_data dev;
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* config_methods - Enabled configuration methods
|
|
|
|
*
|
|
|
|
* Bit field of WPS_CONFIG_*
|
|
|
|
*/
|
|
|
|
u16 config_methods;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* encr_types - Enabled encryption types (bit field of WPS_ENCR_*)
|
|
|
|
*/
|
|
|
|
u16 encr_types;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* auth_types - Authentication types (bit field of WPS_AUTH_*)
|
|
|
|
*/
|
|
|
|
u16 auth_types;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* network_key - The current Network Key (PSK) or %NULL to generate new
|
|
|
|
*
|
|
|
|
* If %NULL, Registrar will generate per-device PSK. In addition, AP
|
|
|
|
* uses this when acting as an Enrollee to notify Registrar of the
|
|
|
|
* current configuration.
|
|
|
|
*/
|
|
|
|
u8 *network_key;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* network_key_len - Length of network_key in octets
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
size_t network_key_len;
|
|
|
|
|
2009-01-23 14:08:55 -05:00
|
|
|
/**
|
|
|
|
* ap_settings - AP Settings override for M7 (only used at AP)
|
|
|
|
*
|
|
|
|
* If %NULL, AP Settings attributes will be generated based on the
|
|
|
|
* current network configuration.
|
|
|
|
*/
|
|
|
|
u8 *ap_settings;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ap_settings_len - Length of ap_settings in octets
|
|
|
|
*/
|
|
|
|
size_t ap_settings_len;
|
|
|
|
|
2009-01-03 12:50:49 -05:00
|
|
|
/**
|
|
|
|
* cred_cb - Callback to notify that new Credentials were received
|
|
|
|
* @ctx: Higher layer context data (cb_ctx)
|
|
|
|
* @cred: The received Credential
|
|
|
|
* Return: 0 on success, -1 on failure
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
int (*cred_cb)(void *ctx, const struct wps_credential *cred);
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* event_cb - Event callback (state information about progress)
|
|
|
|
* @ctx: Higher layer context data (cb_ctx)
|
|
|
|
* @event: Event type
|
|
|
|
* @data: Event data
|
|
|
|
*/
|
2008-12-18 14:58:42 -05:00
|
|
|
void (*event_cb)(void *ctx, enum wps_event event,
|
|
|
|
union wps_event_data *data);
|
2009-01-03 12:50:49 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* cb_ctx: Higher layer context data for callbacks
|
|
|
|
*/
|
2008-11-23 12:34:26 -05:00
|
|
|
void *cb_ctx;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct wps_registrar *
|
|
|
|
wps_registrar_init(struct wps_context *wps,
|
|
|
|
const struct wps_registrar_config *cfg);
|
|
|
|
void wps_registrar_deinit(struct wps_registrar *reg);
|
|
|
|
int wps_registrar_add_pin(struct wps_registrar *reg, const u8 *uuid,
|
|
|
|
const u8 *pin, size_t pin_len);
|
|
|
|
int wps_registrar_invalidate_pin(struct wps_registrar *reg, const u8 *uuid);
|
|
|
|
int wps_registrar_unlock_pin(struct wps_registrar *reg, const u8 *uuid);
|
|
|
|
int wps_registrar_button_pushed(struct wps_registrar *reg);
|
|
|
|
void wps_registrar_probe_req_rx(struct wps_registrar *reg, const u8 *addr,
|
|
|
|
const struct wpabuf *wps_data);
|
|
|
|
|
2008-11-29 07:02:09 -05:00
|
|
|
unsigned int wps_pin_checksum(unsigned int pin);
|
|
|
|
unsigned int wps_pin_valid(unsigned int pin);
|
|
|
|
unsigned int wps_generate_pin(void);
|
|
|
|
|
2008-11-23 12:34:26 -05:00
|
|
|
#endif /* WPS_H */
|