X-Git-Url: http://www.project-moonshot.org/gitweb/?p=libeap.git;a=blobdiff_plain;f=src%2Fap%2Fwps_hostapd.c;h=ff435d6dd014e05a117cb1e222518710b25feef1;hp=d131a842f93934c76d53ad414908f2cbb9848896;hb=4e698e5c30b7693a1ed600093fd8ae30b6841e8d;hpb=ca0d6b81d6c3ddf66db3806cbf8b5c667c066647 diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index d131a84..ff435d6 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -75,10 +75,10 @@ static int hostapd_wps_for_each(struct hostapd_data *hapd, { struct hostapd_iface *iface = hapd->iface; struct wps_for_each_data data; - if (iface->for_each_interface == NULL) - return -1; data.func = func; data.ctx = ctx; + if (iface->for_each_interface == NULL) + return wps_for_each(iface, &data); return iface->for_each_interface(iface->interfaces, wps_for_each, &data); }