aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-04-01 17:32:09 (GMT)
committerJouni Malinen <j@w1.fi>2013-04-01 17:32:09 (GMT)
commit59307b3007339024871dbddff4439cbcc7f9aec8 (patch)
tree0a822bbe51f803a864c82c9ea4215fe578c8088b /src/wps/wps.h
parentea295abcd5e76c8cde9f5260cd49a3f7fcd1d75d (diff)
downloadhostap-59307b3007339024871dbddff4439cbcc7f9aec8.zip
hostap-59307b3007339024871dbddff4439cbcc7f9aec8.tar.gz
hostap-59307b3007339024871dbddff4439cbcc7f9aec8.tar.bz2
WPS ER: Allow AP to be specified with BSSID
This extends the WPS ER commands that previously accepted only UUID as an identifier for an AP to use either UUID or BSSID for this. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/wps/wps.h')
-rw-r--r--src/wps/wps.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/wps/wps.h b/src/wps/wps.h
index 39fce56..f52b74f 100644
--- a/src/wps/wps.h
+++ b/src/wps/wps.h
@@ -1,6 +1,6 @@
/*
* Wi-Fi Protected Setup
- * Copyright (c) 2007-2012, Jouni Malinen <j@w1.fi>
+ * Copyright (c) 2007-2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
@@ -794,13 +794,15 @@ void wps_er_deinit(struct wps_er *er, void (*cb)(void *ctx), void *ctx);
void wps_er_set_sel_reg(struct wps_er *er, int sel_reg, u16 dev_passwd_id,
u16 sel_reg_config_methods);
int wps_er_pbc(struct wps_er *er, const u8 *uuid);
-int wps_er_learn(struct wps_er *er, const u8 *uuid, const u8 *pin,
- size_t pin_len);
-int wps_er_set_config(struct wps_er *er, const u8 *uuid,
+int wps_er_learn(struct wps_er *er, const u8 *uuid, const u8 *addr,
+ const u8 *pin, size_t pin_len);
+int wps_er_set_config(struct wps_er *er, const u8 *uuid, const u8 *addr,
const struct wps_credential *cred);
-int wps_er_config(struct wps_er *er, const u8 *uuid, const u8 *pin,
- size_t pin_len, const struct wps_credential *cred);
-struct wpabuf * wps_er_nfc_config_token(struct wps_er *er, const u8 *uuid);
+int wps_er_config(struct wps_er *er, const u8 *uuid, const u8 *addr,
+ const u8 *pin, size_t pin_len,
+ const struct wps_credential *cred);
+struct wpabuf * wps_er_nfc_config_token(struct wps_er *er, const u8 *uuid,
+ const u8 *addr);
int wps_dev_type_str2bin(const char *str, u8 dev_type[WPS_DEV_TYPE_LEN]);
char * wps_dev_type_bin2str(const u8 dev_type[WPS_DEV_TYPE_LEN], char *buf,