aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-09 09:24:06 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-09 09:24:06 (GMT)
commit22a062815d14033ce1d8ebcdf94bf08fad493860 (patch)
tree12300509c67af271e3871720072b054fa77916ee
parent8672562b04a6f51cba5dad19b27a296caa17f0c0 (diff)
downloadhostap-22a062815d14033ce1d8ebcdf94bf08fad493860.zip
hostap-22a062815d14033ce1d8ebcdf94bf08fad493860.tar.gz
hostap-22a062815d14033ce1d8ebcdf94bf08fad493860.tar.bz2
WPS: Add wildcard AuthorizedMACs entry for PBC
-rw-r--r--src/wps/wps_registrar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c
index 21fc35d..d98c6aa 100644
--- a/src/wps/wps_registrar.c
+++ b/src/wps/wps_registrar.c
@@ -841,6 +841,8 @@ static void wps_registrar_stop_pbc(struct wps_registrar *reg)
{
reg->selected_registrar = 0;
reg->pbc = 0;
+ wps_registrar_remove_authorized_mac(reg,
+ (u8 *) "\xff\xff\xff\xff\xff\xff");
wps_registrar_selected_registrar_changed(reg);
}
@@ -876,6 +878,8 @@ int wps_registrar_button_pushed(struct wps_registrar *reg)
reg->force_pbc_overlap = 0;
reg->selected_registrar = 1;
reg->pbc = 1;
+ wps_registrar_add_authorized_mac(reg,
+ (u8 *) "\xff\xff\xff\xff\xff\xff");
wps_registrar_selected_registrar_changed(reg);
eloop_cancel_timeout(wps_registrar_set_selected_timeout, reg, NULL);